Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: enhanced word widgets
- X-seq: zsh-workers 18401
- From: Zefram <zefram@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: enhanced word widgets
- Date: Fri, 28 Mar 2003 17:46:15 +0000
- In-reply-to: <1030328161117.ZM22723@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <25439.1048850787@xxxxxxx> <1030328161117.ZM22723@xxxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
>I want the definition of a "word" to be context-sensitive. For example:
>If the cursor is within a shell word that contains a "/" character, then
>I want "ZLE words" to be pathname components (and transpose-words should
>transpose around the nearest "/" either under the cursor or to the left);
>but if the cursor is between two shell words, then I want "words" to be
>shell words, e.g., pathnames including the slashes.
This sounds a lot like Emacs' concept of sexprs -- roughly, a sexpr is
an HLL expression, so sexprs can be nested. sexprs are also, roughly,
the level at which we want to do completion. Can this concept be usefully
factored out?
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author