Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion
- X-seq: zsh-users 19715
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: completion
- Date: Thu, 8 Jan 2015 13:36:06 +0100
- In-reply-to: <CAH+w=7ZPnjtZQJLM012ZJFx-zj7pFLzVivEG+Q=vixLGnjrM5g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <30453.1418258082@thecus.kiddle.eu> <5488F0AC.2040901@eastlink.ca> <141210214454.ZM12261@torch.brasslantern.com> <5489C8F4.8030703@eastlink.ca> <141211092824.ZM13349@torch.brasslantern.com> <5489F1BC.5000900@eastlink.ca> <20150107150109.GA14088@ypig.lip.ens-lyon.fr> <CAH+w=7YQ=VrWFjCXn4q7U48e3R+eNTF9xihHBf-oFDYTVR_zGQ@mail.gmail.com> <20150108004323.GA7954@xvii.vinc17.org> <CAH+w=7ZPnjtZQJLM012ZJFx-zj7pFLzVivEG+Q=vixLGnjrM5g@mail.gmail.com>
On 2015-01-07 21:26:44 -0800, Bart Schaefer wrote:
> On Wed, Jan 7, 2015 at 4:43 PM, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> > zstyle ':completion:*:complete:*' matcher-list [...]
> >
> > If * matches everything, then this could mean [any of]
> >
> > :completion:[any function]:complete:[any cmd]:[any arg]:[any tag]
> > :completion:[any function]:[any completer]:complete:[any arg]:[any tag]
> > :completion:[any function]:[any completer]:[any cmd]:complete:[any tag]
>
> You're correct, it could. But "matcher-list" also has to match, and
> THAT only happens in one of those three cases, so there's no need to
> constrain the pattern any further (unless you WANT to; refer to my
> car-cover analogy).
I don't understand. I suppose that the real intent of
zstyle ':completion:*:complete:*' matcher-list [...]
was to match the completer "complete", i.e. like
zstyle ':completion:*:complete:*:*:*' matcher-list [...]
But what if the context is ":completion::foo:complete::" in some
completion, i.e. with the completer "foo" and the command "complete"?
It would match, wouldn't it? But the intent was to match only the
completer "complete", not "foo"!
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author