Zsh Mailing List Archive
Messages sorted by:
Re: terminfo, cygwin troubles
- X-seq: zsh-users 5777
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Le Wang <lewang@xxxxxxxxx>
- Subject: Re: terminfo, cygwin troubles
- Date: Mon, 20 Jan 2003 16:55:17 +0100
- Cc: Zsh users list <zsh-users@xxxxxxxxxx>
- In-reply-to: <20030119232845.50187.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030119232845.50187.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: kiddleo@xxxxxxxxxx
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
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 \
For this to work you will need to also define a group-name style. I just
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' \
zstyle ':completion::*:(id3cp|id3info|mp3Reencode|mp3Group):*:globbed-files' \
I hope that helps
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.
Messages sorted by: