From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7616 invoked from network); 20 Jan 2003 15:52:53 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 20 Jan 2003 15:52:53 -0000 Received: (qmail 27965 invoked by alias); 20 Jan 2003 15:52:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5777 Received: (qmail 27957 invoked from network); 20 Jan 2003 15:52:26 -0000 X-MessageWall-Score: 0 (sunsite.dk) X-VirusChecked: Checked X-Env-Sender: kiddleo@logica.com X-Msg-Ref: server-5.tower-4.messagelabs.com!1043077944!32733 X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk cc: Zsh users list In-reply-to: <20030119232845.50187.qmail@web12305.mail.yahoo.com> From: Oliver Kiddle References: <20030119232845.50187.qmail@web12305.mail.yahoo.com> To: Le Wang Subject: Re: terminfo, cygwin troubles Date: Mon, 20 Jan 2003 16:55:17 +0100 Message-ID: <8036.1043078117@finches.logica.co.uk> Sender: kiddleo@logica.com On 19 Jan, Le Wang wrote: > > zstyle ':completion:*' file-patterns \ > > '%p:globbed-files *(-/):directories' > > '*:all-files' > > Yes. This works well. But is there any way I can > control how the results are sorted? I would want the > directories to always come last. The group-order style lets you specify the order of the groups. First you need to add descriptions for the two groups in the file-patterns style: zstyle ':completion::*:(id3cp|id3info|mp3Reencode|mp3Group):*' file-patterns \ '%p:globbed-files:mp3\ files *(-/):directories:directories' '*:all-files' That avoids the group-name for the files tag taking precedence over the group-name for the globbed-files and directories tags. The group-order style is probably unnecessary but here it is anyway: zstyle ':completion::*:(id3cp|id3info|mp3Reencode|mp3Group):*' group-order \ globbed-files directories For this to work you will need to also define a group-name style. I just define this: zstyle ':completion:*' group-name '' but if you don't want that, you can define it for each of the directories and globbed-files tags: zstyle ':completion::*:(id3cp|id3info|mp3Reencode|mp3Group):*:directories' \ group-name directories zstyle ':completion::*:(id3cp|id3info|mp3Reencode|mp3Group):*:globbed-files' \ group-name globbed-files I hope that helps 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.