zsh-workers
 help / color / mirror / code / Atom feed
* Matching in completion again
@ 2001-02-07  7:59 Andrej Borsenkow
  2001-02-07  8:02 ` Andrej Borsenkow
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2001-02-07  7:59 UTC (permalink / raw)
  To: ZSH Workers Mailing List

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 :)

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.

bor@itsrm2% zstyle -L
zstyle ':completion:*' completer _oldlist _complete _match
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' format '%BCompleting %d%b'
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}' 'm:{a-z}={A-Z}
r:|[._-]=* r:|=*' 'm:{a-z}={A-Z} r:|[.-]=** r:|=**'
zstyle ':completion:*' menu 'select=long-list' 'select=0'
zstyle ':completion:*' verbose true
zstyle :compinstall filename /home/bor/.zcompletion
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)-*'
zstyle ':completion:*' ambiguous true
zstyle ':completion:*' list-rows-first true
zstyle ':completion:*:processes' command '
        if (($EUID && !${+NUMERIC})); then
            ps -fu $EUID
        else
            ps -fe
        fi
'

-andrej

Have a nice DOS!
B >>


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

* RE: Matching in completion again
  2001-02-07  7:59 Matching in completion again Andrej Borsenkow
@ 2001-02-07  8:02 ` Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2001-02-07  8:02 UTC (permalink / raw)
  To: ZSH Workers Mailing List

> I'm not sure if the following is correct

Sorry, of course it is correct. I tend to forget I have r:|[._-]=* r:|=* in
matchers.

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

-andrej


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

* Re: Matching in completion again
@ 2001-02-07  8:03 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2001-02-07  8:03 UTC (permalink / raw)
  To: zsh-workers


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


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

end of thread, other threads:[~2001-02-07  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-07  7:59 Matching in completion again Andrej Borsenkow
2001-02-07  8:02 ` Andrej Borsenkow
2001-02-07  8:03 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).