From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6599 invoked from network); 2 Jan 2003 16:42:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jan 2003 16:42:06 -0000 Received: (qmail 15756 invoked by alias); 2 Jan 2003 16:42:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18048 Received: (qmail 15735 invoked from network); 2 Jan 2003 16:41:59 -0000 X-VirusChecked: Checked X-Env-Sender: kiddleo@logica.com X-Msg-Ref: server-2.tower-4.messagelabs.com!1041525690!26547 X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk cc: zsh-workers@sunsite.dk In-reply-to: <20030102160616.GA8414@gulag.guild.uwa.edu.au> From: Oliver Kiddle References: <20030102160616.GA8414@gulag.guild.uwa.edu.au> To: James Devenish Subject: Re: Options for Completion/Zsh/Command/_cd? Date: Thu, 02 Jan 2003 17:43:58 +0100 Message-ID: <2987.1041525838@finches.logica.co.uk> Sender: kiddleo@logica.com On 3 Jan, you wrote: > I always use a 'custom' version of _cd because: > > - I don't want tab completion to consider $cdpath > (in fact, I hate when that happens!) zstyle ':completion:*:*:cd:*' tag-order local-directories will do this for you. Or you could use: zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories to only complete directories from $cdpath when no local directories match. In any context where more than one type of thing is completed, you can press ^Xh and it will list the tags used for completion in that context and you can specify the order for them to be completed. > - I like CVS and .svn directories to be ignored. zstyle ':completion:*:*:cd:*' ignored-patterns '(|*/)(.svn|CVS)' > I achieve this by scrubbing out portions of _cd and then adding an -F > option to _path_files. It would probably be better if I were to be able If I remember correctly, the ignored-patterns style is implemented by adding -F. > to set some options in my .zshrc rather than rolling a new _cd with each > release. What is the canonical or preferred way of passing options to > completion functions? I can envisage being able to solve my $cdpath Not sure. The preferred way is that we don't ever and a zstyle is made to do the job. > I'm willing to bother doing the necessary patches, but my prowess with > zsh completion functions is at the novice end of the scale. (Having > said that, though, I have a completion function for Subversion version > control: _svn, which I should share sometime.) Please do share it. Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.