Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _files: "list-dirs-first" style.
- X-seq: zsh-workers 25503
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: [PATCH] _files: "list-dirs-first" style.
- Date: Thu, 21 Aug 2008 16:54:59 +0100
- Cc: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- In-reply-to: <1218870370-2651-1-git-send-email-raorn@xxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1218870370-2651-1-git-send-email-raorn@xxxxxxxxxxxx>
On Sat, 16 Aug 2008 11:06:10 +0400
"Alexey I. Froloff" <raorn@xxxxxxxxxxxx> wrote:
> When this style set to "true", directories are shown before
> files. Also instead of "all-files" tag it offers
> "other-files" bceause directories are excluded from file
> list.
Thanks, this looks potentially useful and at worst harmless (haven't
quite worked out why you can't do it with tag ordering but they're
certainly fiddly and this is a common case). I've committed it with the
docs below.
Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v
retrieving revision 1.213
diff -u -r1.213 compsys.yo
--- Doc/Zsh/compsys.yo 29 Jul 2008 08:39:41 -0000 1.213
+++ Doc/Zsh/compsys.yo 21 Aug 2008 15:50:11 -0000
@@ -928,6 +928,11 @@
item(tt(other-accounts))(
used to look up the tt(users-hosts) style
)
+kindex(other-files, completion tag)
+item(tt(other-files))(
+for the names of any non-directory files. This is used instead
+of tt(all-files) when the tt(list-dirs-first) style is in effect.
+)
kindex(packages, completion tag)
item(tt(packages))(
for packages (e.g. tt(rpm) or installed tt(Debian) packages)
@@ -1854,6 +1859,14 @@
The default colors are the same as for the GNU tt(ls) command and can be
obtained by setting the style to an empty string (i.e. tt('')).
)
+kindex(list-dirs-first, completion style)
+item(tt(list-dirs-first))(
+This is used by file completion. If set, directories to be completed
+are listed separately from and before completion for other files,
+regardless of tag ordering. In addition, the tag tt(other-files)
+is used in place of tt(all-files) for the remaining files, to indicate
+that no directories are presented with that tag.
+)
kindex(list-grouped, completion style)
item(tt(list-grouped))(
If this style is `true' (the default), the completion system will try to
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author