From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6813 invoked from network); 15 Apr 2004 04:08:35 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Apr 2004 04:08:35 -0000 Received: (qmail 20562 invoked by alias); 15 Apr 2004 04:08:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7353 Received: (qmail 20551 invoked from network); 15 Apr 2004 04:08:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Apr 2004 04:08:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Apr 2004 4:8:19 -0000 Received: (qmail 30029 invoked from network); 15 Apr 2004 04:08:18 -0000 Received: from mta5.srv.hcvlny.cv.net (167.206.5.78) by a.mx.sunsite.dk with SMTP; 15 Apr 2004 04:08:17 -0000 Received: from acm.org (ool-182cd17f.dyn.optonline.net [24.44.209.127]) by mta5.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0HW700JQO250RK@mta5.srv.hcvlny.cv.net> for zsh-users@sunsite.dk; Thu, 15 Apr 2004 00:07:49 -0400 (EDT) Date: Thu, 15 Apr 2004 00:05:47 -0400 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: <407E06F4.6010301@acm.org> Cc: zsh-users@sunsite.dk Message-id: <407E0A1B.2060703@acm.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040319) References: <12734.1080061609@csr.com> <4061027C.907@acm.org> <4073DAE5.6040904@acm.org> <407E06F4.6010301@acm.org> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.6 required=6.0 tests=RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.6 paxunix wrote: > paxunix wrote: > > [ using zstyle ':completion:*:paths' accept-exact '*' to avoid > partial completion globs on directory elements ] > >> There are a couple of very annoying issues with this solution: >> ambiguous matches are not cycled through correctly and it is >> impossible to complete some pathnames. For example, if you have two >> directories: >> >> dir1 >> dir1~ >> >> Typing dir will complete up to 'dir1' and (in my case) show dir1 >> and dir1~ as possible completions. Successively hitting TAB will >> never cycle through to dir1~ - a trailing '/' is inserted after dir1 >> and zsh lists the contents of dir1 as possible completions. It >> appears that any common prefix to an initial path completion attempt >> causes completion to continue inside the first directory match. If >> it's between a directory and a filename with a common prefix, things >> work as they are supposed to. > > > On a hunch, I changed the '*' to '*(N)', so my resulting zstyle line > became: > > zstyle ':completion:*:paths' accept-exact '*(N)' > > and so far this seems to do precisely what I want, without the above > annoyances. I especially noticed the difference when completing > dotfiles in my home directory. Without '*(N)', try: > > ls ~/. > > and notice that none of the dotfiles are given as possible > completions. Instead you get a trailing slash appended and then > non-dotfile completions from the home directory. With '*(N)', this > works as expected. Argh--spoke too soon. I had two windows open at the same time with each of the zstyle settings, and must have used the wrong one. My mistake. --SH