From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1015 invoked from network); 16 Dec 2003 11:19:11 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Dec 2003 11:19:11 -0000 Received: (qmail 23124 invoked by alias); 16 Dec 2003 11:19:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19298 Received: (qmail 23085 invoked from network); 16 Dec 2003 11:19:04 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Dec 2003 11:19:04 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [193.109.254.211] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Dec 2003 11:19:4 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-13.tower-36.messagelabs.com!1071573542!2507652 X-StarScan-Version: 5.1.15; banners=-,-,- Received: (qmail 29487 invoked from network); 16 Dec 2003 11:19:02 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-13.tower-36.messagelabs.com with SMTP; 16 Dec 2003 11:19:02 -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 hBGBJ2uB019973 for ; Tue, 16 Dec 2003 11:19:02 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 hBGBNAr11325 for ; Tue, 16 Dec 2003 12:23:11 +0100 X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <1031215214116.ZM13701@candle.brasslantern.com> From: Oliver Kiddle References: <20031213154651.GR18859@strindberg.dsv.su.se> <1031213191918.ZM5325@candle.brasslantern.com> <20031213233905.GW18859@strindberg.dsv.su.se> <3213.1071488991@gmcs3.local> <1031215170258.ZM12804@candle.brasslantern.com> <5719.1071514564@gmcs3.local> <1031215193717.ZM13527@candle.brasslantern.com> <6396.1071518828@gmcs3.local> <1031215214116.ZM13701@candle.brasslantern.com> To: Zsh workers Subject: Re: Completion in pwd before subdirecories Date: Tue, 16 Dec 2003 12:23:10 +0100 Message-ID: <11323.1071573790@gmcs3.local> Bart wrote: > I suppose really it should be "_files -g '*.gz(-.)'" ... Yes. And I'm now convinced that we should make that change throughout. Only, in my testing, I have to include a `#q' for it to work so _files' merging of glob qualifiers must have problems somewhere. The manual includes this example: zstyle ':completion:*' file-patterns \ '%p:globbed-files' '*(-/):directories' '*:all-files' We perhaps ought to point out that the globbed-files may include directories and the user may want to use '%p(^-/):globbed-files' to have all directories completed later. > } We still need to ask whether the user should need a file-patterns style > } to achieve directories after files for the original menu completion > } question. I've just realised that this is of course solved by using things like '*.gz(-.)'. Unfortunately, things are broken by the many completion functions which do something like: _wanted files expl file _files -g '*.gz(-.)' The `files' group takes precedence and everything ends up back in one group. So we're back to the old problem of precedence of compadd options in nested tag loops. Oliver