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

Re: something strange with case insensitive matching



Andrej Borsenkow wrote:

> This one correctly completes:
> 
> bor@itsrm2% sudo rm /t/sh/z/-2/f/B<TAB>
> bor@itsrm2% sudo rm /tools/share/zsh/3.1.7-pre-2/functions/B
> Completing file
> Base/      Builtins/
> 
> but this one not
> 
> bor@itsrm2% sudo rm /t/sh/z/-2/f/b<TAB>
> bor@itsrm2% sudo rm /t/sh/z/-2/f/b
> Completing `arguments', `file', or `option'

It *does* complete correctly.

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

If you want partial word matching and case-insensitivity at the same
time, you have to tell 'em:

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


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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