zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh workers <zsh-workers@sunsite.dk>
Cc: "Alexey I. Froloff" <raorn@altlinux.org>
Subject: Re: [PATCH] _files: "list-dirs-first" style.
Date: Thu, 21 Aug 2008 16:54:59 +0100	[thread overview]
Message-ID: <20080821165459.62e93263@pws-pc> (raw)
In-Reply-To: <1218870370-2651-1-git-send-email-raorn@altlinux.org>

On Sat, 16 Aug 2008 11:06:10 +0400
"Alexey I. Froloff" <raorn@altlinux.org> 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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  parent reply	other threads:[~2008-08-21 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-16  7:06 Alexey I. Froloff
2008-08-18  9:57 ` Alexey I. Froloff
2008-08-21 15:54 ` Peter Stephenson [this message]
2008-08-22 20:04   ` Richard Hartmann

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=20080821165459.62e93263@pws-pc \
    --to=p.w.stephenson@ntlworld.com \
    --cc=raorn@altlinux.org \
    --cc=zsh-workers@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).