From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14617 invoked from network); 17 Sep 2004 09:46:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 17 Sep 2004 09:46:20 -0000 Received: (qmail 17555 invoked from network); 17 Sep 2004 09:46:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Sep 2004 09:46:14 -0000 Received: (qmail 2665 invoked by alias); 17 Sep 2004 09:45:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8004 Received: (qmail 2656 invoked from network); 17 Sep 2004 09:45:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 17 Sep 2004 09:45:30 -0000 Received: (qmail 16148 invoked from network); 17 Sep 2004 09:45:30 -0000 Received: from lhuumrelay3.lnd.ops.eu.uu.net (62.189.58.19) by a.mx.sunsite.dk with SMTP; 17 Sep 2004 09:45:29 -0000 Received: from MAILSWEEPER01.csr.com (mailhost1.csr.com [62.189.183.235]) by lhuumrelay3.lnd.ops.eu.uu.net (8.11.0/8.11.0) with ESMTP id i8H9jSv12510 for ; Fri, 17 Sep 2004 09:45:29 GMT Received: from EXCHANGE02.csr.com (unverified [192.168.137.45]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 17 Sep 2004 10:44:33 +0100 Received: from news01.csr.com ([192.168.143.38]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 17 Sep 2004 10:46:49 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.12.11/8.12.11) with ESMTP id i8H9jNrD023686 for ; Fri, 17 Sep 2004 10:45:23 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.12.11/8.12.11/Submit) with ESMTP id i8H9jN1H023683 for ; Fri, 17 Sep 2004 10:45:23 +0100 Message-Id: <200409170945.i8H9jN1H023683@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Globbing question In-reply-to: <27415.1095348059@trentino.logica.co.uk> References: <200409161430.i8GEUUoK012318@news01.csr.com> <27415.1095348059@trentino.logica.co.uk> Date: Fri, 17 Sep 2004 10:45:23 +0100 From: Peter Stephenson X-OriginalArrivalTime: 17 Sep 2004 09:46:49.0317 (UTC) FILETIME=[40BC6950:01C49C9B] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Oliver Kiddle wrote: > Peter wrote: > > The answer to both this and the next question is that unfortunately you > > can't use glob qualifiers in ignored patterns. They are handled as > > generic patterns, not specifically file patterns. This is rather a > > nuisance. > > I wouldn't say it is a nuisance. You can use the file-patterns style > instead to add glob qualifiers where _files is used for completing > files. OK, so you're saying that in most contexts, you can do something like zstyle ':completion:*' file-patterns '*(#q-*)' to complete only executable files, but the specific example zstyle ':completion:*:complete:-command-::commands' file-patterns '*(#q-*)' doesn't work because it goes through the code the wrong way? I would say that *is* an annoyance, and that 99% of users don't care about the difference between _files and _path_files. Some cross-referencing between ignored-patterns and file-patterns might be beneficial, too. Presumably a side effect of using file-patterns is the _ignored completer doesn't pick up the remaining files, but if I remember there are ways of doing this with the all-files tag. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************