From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7095 invoked from network); 18 Sep 2000 06:54:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Sep 2000 06:54:24 -0000 Received: (qmail 13599 invoked by alias); 18 Sep 2000 06:53:32 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3435 Received: (qmail 13592 invoked from network); 18 Sep 2000 06:53:31 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "E. Jay Berkenbilt" , Subject: RE: completion and globbing, part 2 Date: Mon, 18 Sep 2000 10:53:25 +0400 Message-ID: <000701c0213d$2434b6d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <200009180017.UAA08871@soup.ql.org> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > > It occurred to me that if the analysis in my last message was true, > the following would work: > > zstyle ':completion:*' completer _oldlist _complete _qcomp _ignored > bindkey "^I" complete-word > > where _qcomp is defined as follows: > > #autoload > > compstate[pattern_match]='*' > compstate[insert]=all > ret=1 > _complete && ret=0 > return ret > > This does, in fact, give me exactly the behavior I'm looking for > without using _expand or _match. > > (I also added _ignored, but that doesn't have anything to do with > this.) > In this case, you, probably, do not need _oldlist either. Well, what you've effectively done is to write stripped-down version of _match :-) Could you consider patching _match adding a style to control it? But, really, it may not be as simple. _expand gives you choice to select all expantions as a tag. But _match just modifies behaviour of subsequent completer ... I mean, general implementation should give a choice to insert or not to insert all matching completions. I currently do not see place to put it in. May be, widget to do it (insert all current choices) would be the simplest case. Hmm ... may be it is even possible to implement it as function. -andrej