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

Re: Matching in completion again



Andrej Borsenkow wrote:

> I'm not sure if the following is correct ... anyway I have the feeling it
> behaved differently once. May be, I just wished it behaved differently :)

I have the feeling, you reported something similar some time ago, and
got almost the same answer you'll get now ;-)

> bor@itsrm2% l /to/sh/zsh/-TAB
> bor@itsrm2% l /tools/share/zsh/site-functions/
> bor@itsrm2% l /tools/share/zsh/
> 3.1.9-dev-5/     3.1.9-dev-6/     3.1.9-dev-7/     3.1.9-dev-8/
> site-functions/
> 
> The question is, why completion shows one match only.

Because it first tries this match spec:

> ...
> 
> zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-z}={A-Z}
> r:|[._-]=* r:|=*' 'm:{a-z}={A-Z} r:|[.-]=** r:|=**'
  ^^^^^^^^^^^^^^^^^

With single `*'s, so it can't match parts containing anchor characters 
and `3.1.9' and `dev-?' both contain two/one of the anchor characters.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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