From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10357 invoked from network); 24 Mar 2004 03:35:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 24 Mar 2004 03:35:50 -0000 Received: (qmail 14532 invoked by alias); 24 Mar 2004 03:35:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7250 Received: (qmail 14482 invoked from network); 24 Mar 2004 03:35:32 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 24 Mar 2004 03:35:32 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 24 Mar 2004 3:35:31 -0000 Received: (qmail 21516 invoked from network); 24 Mar 2004 03:35:31 -0000 Received: from mta2.srv.hcvlny.cv.net (167.206.5.68) by a.mx.sunsite.dk with SMTP; 24 Mar 2004 03:35:29 -0000 Received: from acm.org (ool-182cd17f.dyn.optonline.net [24.44.209.127]) by mta2.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HV200DHO9YXX9@mta2.srv.hcvlny.cv.net> for zsh-users@sunsite.dk; Tue, 23 Mar 2004 22:35:21 -0500 (EST) Date: Tue, 23 Mar 2004 22:37:32 -0500 From: paxunix Subject: Re: How to get faster completion if I make zsh assume what I've typed so far is correct? In-reply-to: <12734.1080061609@csr.com> To: zsh-users@sunsite.dk Message-id: <4061027C.907@acm.org> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_akgQci/dzLkuXiZKOiEEsw)" X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040319) References: <12734.1080061609@csr.com> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ** X-Spam-Status: No, hits=2.1 required=6.0 tests=HTML_MESSAGE,HTML_TITLE_EMPTY, RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 2.1 --Boundary_(ID_akgQci/dzLkuXiZKOiEEsw) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Peter Stephenson wrote: >paxunix wrote: > > >>Why does zsh have to glob every directory along a pathname in order to >>find completions within the final directory? For example, take this case: >> >>/one/two/three/four >> >>If I set -x, the output after hitting TAB shows zsh retrieves all the >>subdirectories within one, two, three and four. >> >> > >It's looking for /oneandabit/twoandabit/threeandabit/four... etc. > >I certainly agree it should be possible to turn this off but the >function that implements this is very hairy and full of calls to poorly >documented shell internals. > >The documentation in the zshcompsys manual page suggests setting > > zstyle ':completion:*:paths' accept-exact true > >or maybe (I'm not quite sure what the entry means and the implementation >is obscure) > > zstyle ':completion:*:paths' accept-exact '*' > >If neither works, I would definitely interpret that as a bug. > >I'm afraid vagueness is the order of the day since the author hasn't >been seen in these parts for ages. Maybe Oliver knows more. > The latter works perfectly. The situation is even more pronounced on zsh under Cygwin, where completing a path with /cygdrive/ will cause your floppy drive to be accessed every time you attempt a new completion. The accept-exact '*' resolves this issue wonderfully. Many thanks! -- Shawn Halpenny --Boundary_(ID_akgQci/dzLkuXiZKOiEEsw)--