From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19395 invoked from network); 15 Dec 2003 17:03:06 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Dec 2003 17:03:06 -0000 Received: (qmail 13548 invoked by alias); 15 Dec 2003 17:03:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19285 Received: (qmail 13523 invoked from network); 15 Dec 2003 17:03:00 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Dec 2003 17:03:00 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Dec 2003 17:3:0 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id hBFH2wB12805 for zsh-workers@sunsite.dk; Mon, 15 Dec 2003 09:02:58 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1031215170258.ZM12804@candle.brasslantern.com> Date: Mon, 15 Dec 2003 17:02:58 +0000 In-Reply-To: <3213.1071488991@gmcs3.local> Comments: In reply to Oliver Kiddle "Re: Completion in pwd before subdirecories" (Dec 15, 12:49pm) References: <20031213154651.GR18859@strindberg.dsv.su.se> <1031213191918.ZM5325@candle.brasslantern.com> <20031213233905.GW18859@strindberg.dsv.su.se> <3213.1071488991@gmcs3.local> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Completion in pwd before subdirecories MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 15, 12:49pm, Oliver Kiddle wrote: } } zstyle ':completion:*' file-patterns \ } '*(-/):directories %p(^-/):globbed-files' '*:all-files' } } Unfortunately, that will now break for any completion which specifies a } glob qualifier such as _chown. Are you sure about that? } I've been meaning to go through adding `#q' into all of them There's code in _files to attempt to merge together any trailing stuff that looks like glob qualifiers, because _files predates the #q flag. In fact, I'm suspicious that adding #q might actually break things. } I'm not quite sure whether the default file-patterns style shouldn't } use %p(^-/) for globbed-files anyway. I don't think I understand the question. Are you suggesting that we should split the existing globbed-files default into globbed-files and globbed-directories? I.e., so that instead of the default ordering of globbed-files directories all-files we'd have globbed-files globbed-directories all-directories all-files or something like that? } What if we want to glob directory names from a completion function? I'm not making the connection between that question and the previous one. However, nothing stops any completion function from doing something like zstyle -m ":completion:${curcontext}:" file-patterns '*' || zstyle ":completion:${curcontext}:" file-patterns \ '%p(-/):directories %p(^-/):globbed-files' '*:all-files'