zsh-workers
 help / color / mirror / code / Atom feed
* something strange with case insensitive matching
@ 2000-05-02 12:19 Andrej Borsenkow
  2000-05-02 12:26 ` Andrej Borsenkow
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-05-02 12:19 UTC (permalink / raw)
  To: ZSH workers mailing list

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'


Normally, case insensitive completion works

bor@itsrm2% zstyle -L
zstyle ':completion:*' completer _oldlist _complete _match
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' insert-unambiguous true
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the
character to insert%s'
zstyle ':completion:*' match-original both
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'r:|[._-]=*
r:|=*' 'r:|[.-]=** r:|=**'
zstyle ':completion:*' menu 'select=0'
zstyle ':completion:*' old-list _match
zstyle ':completion:*' verbose true
zstyle ':completion:*:*:configure:*' tag-order 'options:-with:with\
options options:-other:other\ options' 'options:-without:without\
options'
zstyle ':completion:*:options-with' ignored-patterns '^--with-*'
zstyle ':completion:*:options-without' ignored-patterns '^--without-*'
zstyle ':completion:*:options-other' ignored-patterns '--with(|out)-*'

-andrej

Have a nice DOS!
B >>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: something strange with case insensitive matching
  2000-05-02 12:19 something strange with case insensitive matching Andrej Borsenkow
@ 2000-05-02 12:26 ` Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2000-05-02 12:26 UTC (permalink / raw)
  To: ZSH workers mailing list

The same in even more simple case:

bor@itsrm2% rm c/b/_.o<TAB>
bor@itsrm2% rm c/b/_.o                           
Completing `file'

but

bor@itsrm2% rm C/B/_.o<TAB>
bor@itsrm2% rm Completion/Builtins/_zcompile.org

-andrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: something strange with case insensitive matching
@ 2000-05-02 12:54 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-05-02 12:54 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-05-02 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-02 12:19 something strange with case insensitive matching Andrej Borsenkow
2000-05-02 12:26 ` Andrej Borsenkow
2000-05-02 12:54 Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).