Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: match-word-context
- X-seq: zsh-workers 22607
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: match-word-context
- Date: Mon, 14 Aug 2006 09:22:47 -0700
- In-reply-to: <200608141358.k7EDwQMd024163@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200608141358.k7EDwQMd024163@xxxxxxxxxxxxxx>
On Aug 14, 2:58pm, Peter Stephenson wrote:
}
} I've decided I like it after all, but I've implemented it in a slightly
} more self-contained fashion. See the documentation.
One quick mostly-trivial question/comment on the docs:
} +The word the cursor is on is
} +matched against each var(pattern) in turn until one matches
[...]
} +Here are some examples of use of the tt(word-context) style to extend
} +the context.
} +
} +example(zstyle ':zle:*' word-context "[[:space:]]" whitespace "*/*" file
Will this do the correct thing when the cursor is on whitespace that is
inside a quoted file name? My first thought would be to list the two
patterns in the opposite order.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author