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

Re: another Problem with ignore-line



Hi Oliver Kiddle,

> Try changing the ignore-line style to `other'. That is:
>   zstyle ':completion:*:(rm|cp|mv):*' ignore-line other
> 
> Otherwise the current word (`a' in this case) is ignored along with any
> preceding words.
Ahhhh, sounds logical!

> The default if you don't have a completer style is for _ignored to be
> run after _complete so normally that would pick up the current word. So
> if you prefer, you can add the _ignored completer.
Hm, but that seems to conflict with
 zstyle ':completion:*' ignore-parents parent pwd
so that pressing TAB after "mv a" leads to "mv a/.."
if the subdir "a" is empty.

Thanks for you help and the pointer to zsh-workers!
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Form good habits.  They are just as hard to break as the bad ones!



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