From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22442 invoked from network); 14 Feb 2006 13:29:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00, DATE_IN_PAST_12_24,FORGED_RCVD_HELO autolearn=no version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Feb 2006 13:29:11 -0000 Received: (qmail 11104 invoked from network); 14 Feb 2006 13:29:04 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Feb 2006 13:29:04 -0000 Received: (qmail 12739 invoked by alias); 14 Feb 2006 13:28:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9923 Received: (qmail 12729 invoked from network); 14 Feb 2006 13:28:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Feb 2006 13:28:56 -0000 Received: (qmail 10026 invoked from network); 14 Feb 2006 13:28:56 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 14 Feb 2006 13:28:55 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F90EV-00053y-A7 for zsh-users@sunsite.dk; Tue, 14 Feb 2006 14:28:44 +0100 Received: from p508593fb.dip0.t-ipconnect.de ([80.133.147.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Feb 2006 14:28:43 +0100 Received: from f.braennstroem by p508593fb.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Feb 2006 14:28:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Fabian Braennstroem Subject: Re: open file with tex extension Date: Mon, 13 Feb 2006 15:26:45 +0100 Organization: www.braennstroem.de Message-ID: References: <20060214123035.GC5744@fsst.voodoo.lan> Reply-To: f.braennstroem@gmx.de X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p508593fb.dip0.t-ipconnect.de User-Agent: slrn/0.9.8.1pl1 (Debian) Sender: news Hi Frank, * Frank Terbeck wrote: > Fabian Braennstroem wrote: > [...] >> A similar feature I could use in a directory with latex >> files. Once you translated a latex file you have additional >> files with the same name, but different extension. >> Now, I look for a way to adjust the completion so that when >> I type the name of the latex file zsh completes the >> extension to '.tex' and does not give any other options >> like: >> >> `--> vim sample.aux >> completing file >> sample.aux sample.idx sample.out sample.rel sample.tex\~ >> sample.dvi sample.log sample.pdf sample.tex >> >> Is that somehow possible? > > you can ignore certain patterns for completion: > > zstyle ':completion::*:(vi|vim):*' ignored-patterns \ > '*?.(aux|dvi|log|idx|pdf|rel|out)' > zstyle ':completion::*:(vi|vim):*' ignored-patterns '*~' Thanks for the quick reply! It just works without the second completion, otherwise the old completion is 'overwritten'. Thanks! Is it possible to ignore directories with the same name? Greetings! Fabian