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

Re: Q about matcher style



Andrej Borsenkow wrote:

> Is it possible to say "use these matcher(s) for all *paths* completion"?
> 
> The problem is:
> 
> - I can set to for all tags - but do not want to :-)
> - else I have to explicitly set it for every tag/alias ... and this I
> want to avoid as well.

You should only need the three tags used by _files and the `files' tag 
that might be used if _path_files is called by a function that doesn't 
use its own tag. So:

  zstyle ':completion:*:(directories|(globbed-|all-|files))' matcher ...

plus all the file-patterns tags and labels you defined yourself.

I know that this is a bit ugly, if I could see a better way, I would
have done that some time ago, but...

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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