From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5549 invoked from network); 21 Aug 2008 15:55:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Aug 2008 15:55:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 90379 invoked from network); 21 Aug 2008 15:55:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Aug 2008 15:55:16 -0000 Received: (qmail 24682 invoked by alias); 21 Aug 2008 15:55:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25503 Received: (qmail 24667 invoked from network); 21 Aug 2008 15:55:06 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Aug 2008 15:55:06 -0000 Received: from mtaout02-winn.ispmail.ntl.com (mtaout02-winn.ispmail.ntl.com [81.103.221.48]) by bifrost.dotsrc.org (Postfix) with ESMTP id 91186801E2B4 for ; Thu, 21 Aug 2008 17:55:03 +0200 (CEST) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20080821155503.OVTM21103.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Thu, 21 Aug 2008 16:55:03 +0100 Received: from pws-pc ([81.107.43.40]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20080821155503.ZDEB29597.aamtaout03-winn.ispmail.ntl.com@pws-pc>; Thu, 21 Aug 2008 16:55:03 +0100 Date: Thu, 21 Aug 2008 16:54:59 +0100 From: Peter Stephenson To: zsh workers Cc: "Alexey I. Froloff" Subject: Re: [PATCH] _files: "list-dirs-first" style. Message-ID: <20080821165459.62e93263@pws-pc> In-Reply-To: <1218870370-2651-1-git-send-email-raorn@altlinux.org> References: <1218870370-2651-1-git-send-email-raorn@altlinux.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92.1/8065/Thu Aug 21 17:27:29 2008 on bifrost X-Virus-Status: Clean On Sat, 16 Aug 2008 11:06:10 +0400 "Alexey I. Froloff" 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 Web page now at http://homepage.ntlworld.com/p.w.stephenson/