Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Wildcard completion question
- X-seq: zsh-users 4520
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Bill Pemberton <wfp5p@xxxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Wildcard completion question
- Date: Thu, 06 Dec 2001 16:13:53 +0000
- Cc: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200111272021.fARKL4E23188@xxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxxxxxxxxx
Bill Pemberton wrote:
>
> I have a hopefully simple completion problem with version 4. Really
> it's just a difference from 3 to 4, but I haven't been able to make 4
> behave the way I want. With version 3 (3.0.8, for example, I know
> works this way) I can do something like this:
>
> cd /lv*/bla<TAB>
>
> And have it do completions based on that. It'll even deal with
> something like there being a /lv1/blah and an /lv9/blah2 by cycling
> through both.
>
> But I just haven't been able to figure out how to make version 4 work
> the same way.
It sounds like you need the _match completer (zstyle ':completion:*::::'
completer _match _complete). Be careful that expansion doesn't get in
the way which it might if you bind tab to something other than
complete-word or use the _expand completer before _match.
Oliver
_____________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp
Messages sorted by:
Reverse Date,
Date,
Thread,
Author