From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Le Wang <lewang@yahoo.com>
Cc: Zsh users list <zsh-users@sunsite.dk>
Subject: Re: terminfo, cygwin troubles
Date: Mon, 20 Jan 2003 16:55:17 +0100 [thread overview]
Message-ID: <8036.1043078117@finches.logica.co.uk> (raw)
In-Reply-To: <20030119232845.50187.qmail@web12305.mail.yahoo.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.
next prev parent reply other threads:[~2003-01-20 15:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-15 19:33 Le Wang
2003-01-16 14:27 ` Oliver Kiddle
2003-01-19 23:28 ` Le Wang
2003-01-20 15:55 ` Oliver Kiddle [this message]
2003-01-16 14:40 ` Peter Stephenson
2003-01-16 16:22 ` Le Wang
2003-01-16 16:48 ` Le Wang
2003-01-16 16:48 ` Borzenkov Andrey
2003-01-16 17:14 ` Oliver Kiddle
2003-01-16 18:46 ` Le Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8036.1043078117@finches.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=lewang@yahoo.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).