From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12305 invoked from network); 11 Mar 2004 15:06:09 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 15:06:09 -0000 Received: (qmail 28640 invoked by alias); 11 Mar 2004 15:05:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7143 Received: (qmail 28627 invoked from network); 11 Mar 2004 15:05:40 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 15:05:40 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.58.19] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 15:5:39 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i2BF5dv09577 for ; Thu, 11 Mar 2004 15:05:39 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 11 Mar 2004 15:05:18 +0000 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Mar 2004 15:07:38 +0000 To: zsh-users@sunsite.dk Subject: Re: cd completion and CDABLE_VARS In-reply-to: "=?iso-8859-1?q?Stefan_Reich=F6r?="'s message of "Thu, 11 Mar 2004 15:46:33 +0100." Date: Thu, 11 Mar 2004 15:05:38 +0000 Message-ID: <1754.1079017538@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 11 Mar 2004 15:07:38.0555 (UTC) FILETIME=[97B088B0:01C4077A] > When I now hit ^xh I get the following: > > tags in context :completion::complete:cd:: > local-directories named-directories (_alternative _cd) > users named-directories directory-stack (_tilde _alternative _cd) > users (_users _tilde _alternative _cd) Sounds like you need to read zshcompsys for some orientation. (I don't mean to claim that's necessarily as enlightening as you might wish.) As I said before, the names on the left are the tags. What I didn't say was the names in parentheses are the functions implementing completion for those tags. This gives you a hint about what the tags are used for. _alternative is a utility function and we should probably suppress it from the list since it doesn't generate its own completions (I think that's easy to do but I haven't looked at the code). There's no precedence until you use tag-order as I described before. The lines are simply to associate tags with different completers. > I see, that the user names are used for the name expansion. I do not > want that. How can I switch this off? Instead of putting '*' in the last value in tag-order, just put in named-directories, giving zstyle ':completion:*:complete:(cd|pushd):*' tag-order \ 'local-directories path-directories directory-stack' 'named-directories' This time I've added pushd explicitly. Note that it is harmless to add tags which the completer in question doesn't actually use. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************