From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11534 invoked from network); 15 Dec 2003 11:45:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Dec 2003 11:45:58 -0000 Received: (qmail 27836 invoked by alias); 15 Dec 2003 11:45:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6889 Received: (qmail 27803 invoked from network); 15 Dec 2003 11:45:42 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Dec 2003 11:45:42 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Dec 2003 11:45:42 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-22.tower-36.messagelabs.com!1071488740!2465980 X-StarScan-Version: 5.1.13; banners=-,-,- Received: (qmail 5930 invoked from network); 15 Dec 2003 11:45:40 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-22.tower-36.messagelabs.com with SMTP; 15 Dec 2003 11:45:40 -0000 Received: from gmcs3.local ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id hBFBjeuB006734 for ; Mon, 15 Dec 2003 11:45:40 GMT Received: from gmcs3.local (localhost [127.0.0.1]) by gmcs3.local (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id hBFBnpr03215 for ; Mon, 15 Dec 2003 12:49:51 +0100 X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20031213233905.GW18859@strindberg.dsv.su.se> From: Oliver Kiddle References: <20031213154651.GR18859@strindberg.dsv.su.se> <1031213191918.ZM5325@candle.brasslantern.com> <20031213233905.GW18859@strindberg.dsv.su.se> To: Zsh-users List Subject: Re: Completion in pwd before subdirecories Date: Mon, 15 Dec 2003 12:49:51 +0100 Message-ID: <3213.1071488991@gmcs3.local> Jesper Holmberg wrote: > > zstyle ':completion:*' group-name '' > > zstyle ':completion:*' group-order files directories > > I tried this, and I think I understand what it does, but it doesn't make > any difference. If I have this: Files are completed with the all-files and globbed-files tags so no, it doesn't work. You need something like: zstyle ':completion:*' file-patterns \ '*(-/):directories %p(^-/):globbed-files' '*:all-files' zstyle ':completion:*' group-name '' zstyle ':completion:*' group-order \ globbed-files all-files directories Unfortunately, that will now break for any completion which specifies a glob qualifier such as _chown. I've been meaning to go through adding `#q' into all of them to allow this. I'm not quite sure whether the default file-patterns style shouldn't use %p(^-/) for globbed-files anyway. What if we want to glob directory names from a completion function? Comments on this should probably go to -workers. Oliver