From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28868 invoked from network); 29 Jun 2004 15:30:05 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.85) by ns1.primenet.com.au with SMTP; 29 Jun 2004 15:30:05 -0000 Received: (qmail 19325 invoked from network); 29 Jun 2004 16:40:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jun 2004 16:40:18 -0000 Received: (qmail 16006 invoked by alias); 29 Jun 2004 15:29:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7614 Received: (qmail 15996 invoked from network); 29 Jun 2004 15:29:17 -0000 Received: from odin.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.85) by sunsite.dk with SMTP; 29 Jun 2004 15:29:17 -0000 Received: (qmail 18448 invoked from network); 29 Jun 2004 16:39:57 -0000 Received: from unknown (HELO moonbase.zanshin.com) (@167.160.213.139) by a.mx.sunsite.dk with SMTP; 29 Jun 2004 16:39:47 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i5TFT22T023530 for ; Tue, 29 Jun 2004 08:29:03 -0700 Date: Tue, 29 Jun 2004 08:29:02 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-users@sunsite.dk To: zsh-users@sunsite.dk Subject: Re: zsh completion of just latex files In-Reply-To: <20040623070807.GE31781@madism.org> Message-ID: References: <20040623070807.GE31781@madism.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 23 Jun 2004, Pierre HABOUZIT wrote: > [I, that is Bart, wrote:] > > zstyle ':completion:*:*:vtex:*' file-patterns \ > > '*.tex:tex-files' '*.toc:toc-files *.dvi:dvi-files' '%p:all-files' > > I would like to do something like that but that creates a new group > name. That's essentially what the above example does, except that it doesn't supply descriptions for the groups. In the doc for the file-patterns style, you'll find: The TAGs of all strings in the value will be offered by _files and used when looking up other styles. Any TAGs in the same word will be offered at the same time and before later words. If no `:TAG' is given the `files' tag will be used. The TAG may also be followed by an optional second colon and a description, which will be used for the `%d' in the value of the format style (if that is set) instead of the default description supplied by the completion function. If the description given here contains itself a `%d', that is replaced with the description supplied by the completion function. So something like: zstyle ':completion:*:*:kghostview:*' file-patterns \ '*.(ps|pdf):pspdf-files:PostScript\ or\ PDF\ files' \ '%p:all-files:all\ other\ files'