From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17757 invoked from network); 23 Jun 2004 07:09:56 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 23 Jun 2004 07:09:56 -0000 Received: (qmail 4205 invoked from network); 23 Jun 2004 07:09:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 07:09:22 -0000 Received: (qmail 21195 invoked by alias); 23 Jun 2004 07:09:00 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7592 Received: (qmail 21184 invoked from network); 23 Jun 2004 07:09:00 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 23 Jun 2004 07:08:57 -0000 Received: (qmail 3337 invoked from network); 23 Jun 2004 07:08:57 -0000 Received: from olympe.madism.org (HELO hermes.madism.org) (82.225.205.10) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 07:08:55 -0000 Received: from localhost (localhost [127.0.0.1]) by hermes.madism.org (Postfix) with ESMTP id D09663C06 for ; Wed, 23 Jun 2004 09:08:28 +0200 (CEST) Received: from hermes.madism.org ([127.0.0.1]) by localhost (olympe [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32067-05 for ; Wed, 23 Jun 2004 09:08:07 +0200 (CEST) Received: by hermes.madism.org (Postfix, from userid 1000) id 21CF23C03; Wed, 23 Jun 2004 09:08:07 +0200 (CEST) Date: Wed, 23 Jun 2004 09:08:07 +0200 From: Pierre HABOUZIT To: zsh-users@sunsite.dk Subject: Re: zsh completion of just latex files Message-ID: <20040623070807.GE31781@madism.org> Mail-Followup-To: zsh-users@sunsite.dk References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pk6IbRAofICFmK5e" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040523i X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at madism.org 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=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 --Pk6IbRAofICFmK5e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Assuming (a) that you're using compsys rather than compctl and (b) that= =20 > there isn't already a specialized completer for "vtex", the way to do this > is with the zstyle mechanism, specifically the file-patterns style. The > example in the manual is very similar to this: >=20 > zstyle ':completion:*:*:vtex:*' file-patterns \ > '*.tex:tex-files' '*.toc:toc-files *.dvi:dvi-files' '%p:all-files' >=20 > This means to first try to complete tex files, then (simultaneously, note > that the next two specs are both in the same string) toc or dvi files if > there are no tex, and finally all files. I would like to do something like that but that creates a new group name. for me it's not with vtex at all, but for kghostview (a gv like) I would like to have two groups : ---- PostScript or PDF files printing on my screen before the file list. (btw I have the correct formats in my .zshrc) is that possible ? --=20 Pierre Habouzit =20 http://www.madism.org/ --Pk6IbRAofICFmK5e Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA2SxXvGr7W6HudhwRApkVAJ0dnssiE28NXHsh1tCGka2CD+H3nQCdHw9+ LeuwNzmAAc3xdCMyQW1c92g= =Cg7p -----END PGP SIGNATURE----- --Pk6IbRAofICFmK5e--