From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20019 invoked from network); 23 Jun 2004 08:01:33 -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 08:01:33 -0000 Received: (qmail 32038 invoked from network); 23 Jun 2004 08:00:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 08:00:31 -0000 Received: (qmail 5783 invoked by alias); 23 Jun 2004 08:00:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7594 Received: (qmail 5771 invoked from network); 23 Jun 2004 08:00:12 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 23 Jun 2004 08:00:09 -0000 Received: (qmail 30385 invoked from network); 23 Jun 2004 07:59:39 -0000 Received: from main.gmane.org (80.91.224.249) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 07:59:37 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bd2fP-0000Rx-00 for ; Wed, 23 Jun 2004 09:59:35 +0200 Received: from cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com ([80.3.247.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jun 2004 09:59:35 +0200 Received: from david by cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jun 2004 09:59:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: zsh completion of just latex files Date: Wed, 23 Jun 2004 08:59:30 +0100 Message-ID: <0tdid0hqpvddg8933n5voqfa9vset1ag0d@4ax.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-oxfd4-4-0-cust194.oxfd.cable.ntl.com X-Newsreader: Forte Free Agent 1.93/32.576 English (American) Sender: news 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 00:01:01 -0700 (PDT), wrote: >On Tue, 22 Jun 2004, zzapper wrote: > >> In a directory full of latex files *.tex and all the *.toc *.dvi etc I >> want a widget to only complete *.tex file eg >> >> vtex some_tex_file.tex >> >> How should I do this? > >Assuming (a) that you're using compsys rather than compctl and (b) that >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: > >zstyle ':completion:*:*:vtex:*' file-patterns \ > '*.tex:tex-files' '*.toc:toc-files *.dvi:dvi-files' '%p:all-files' > >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. > Pardon my ignorance, do I have 2 choose between the two methods of completion compsys and compctl, can I mix them, do I have to activate one or the other? (Sorry a lot of zsh help still baffles me, I'll get there but I just haven't grasped the principles) zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips