From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12765 invoked from network); 11 Mar 2004 16:26:51 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 16:26:51 -0000 Received: (qmail 14218 invoked by alias); 11 Mar 2004 16:26:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7147 Received: (qmail 14204 invoked from network); 11 Mar 2004 16:26:24 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 16:26:24 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.4.18.82] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 16:26:23 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.30) id 1B1T0n-0005FA-Oz; Thu, 11 Mar 2004 17:26:21 +0100 Date: Thu, 11 Mar 2004 17:26:21 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: cd completion and CDABLE_VARS Message-ID: <20040311162621.GA18521@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20040311114549.GJ16556@ay.vinc17.org> <14646.1079008097@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <14646.1079008097@csr.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.6i Sender: Vincent Lefevre On 2004-03-11 12:28:17 +0000, Peter Stephenson wrote: > Go to the point where you want completion to be performed and type ^xh. > You should get something like: > > tags in context :completion::complete:cd:: > local-directories path-directories named-directories (_alternative _cd) > users named-directories directory-stack (_tilde _alternative _cd) > users (_users _tilde _alternative _cd) > > (I actually typed `cd z^xh' but it shouldn't matter much.) > > Those names on the left of the list are what you want. You now need to > tell the completion system what order you want it to show the tags: > > zstyle ':completion:*:complete:cd:*' tag-order \ > 'local-directories path-directories directory-stack' '*' Thanks. BTW, in my case, before using the above zstyle, when I did cd pri[TAB] I got: princell private/ where princell isn't a named directory, but a user name (~princell being his home directory). If user home directories are regarded as named directories (as ^xh suggests), then what does "users" mean? > bindkey "^X^N" _next_tags I have the same problem as Stefan. I don't get the matches for the next set of tags with it. Concerning the keys, I also suggest "^[[Z", which corresponds to shift-tab here. -- Vincent Lefèvre - Web: - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA