From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7987 invoked from network); 6 Dec 2001 16:14:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Dec 2001 16:14:36 -0000 Received: (qmail 741 invoked by alias); 6 Dec 2001 16:14:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4520 Received: (qmail 729 invoked from network); 6 Dec 2001 16:14:21 -0000 X-VirusChecked: Checked X-Authentication-Warning: iris.logica.co.uk: Host kiddleo@rambo.logica.co.uk [158.234.33.58] claimed to be yahoo.co.uk Sender: kiddleo@iris.logica.co.uk Message-ID: <3C0F9941.59DEBDEC@yahoo.co.uk> Date: Thu, 06 Dec 2001 16:13:53 +0000 From: Oliver Kiddle X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bill Pemberton CC: zsh-users@sunsite.dk Subject: Re: Wildcard completion question References: <200111272021.fARKL4E23188@cthulhu.itc.Virginia.EDU> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > 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