Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: enhanced word widgets



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