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

Re: Definition of a word



Typing away merrily, Ollivier Robert produced the immortal words:
> Is there a way to refine what zsh think of as a "word" ? It seems that a
> word is "anything other than whitespace" which gets really annoying when
> one use <ESC><BS> to delete part of a path because the whole path is
> destroyed :-(

Change the WORDCHARS variable, documented in zshparam(1).
 WORDCHARS <S>
   A list of non-alphanumeric characters considered part of a word by
   the line editor.

Default is:
WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'

Change this in your .zshrc to the equivalent, without the '/' in there.

Perhaps the 'emulate' command should also change WORDCHARS accordingly?
-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?



Messages sorted by: Reverse Date, Date, Thread, Author