Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: open file with tex extension
- X-seq: zsh-users 9923
- From: Fabian Braennstroem <f.braennstroem@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: open file with tex extension
- Date: Mon, 13 Feb 2006 15:26:45 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: www.braennstroem.de
- References: <slrndv11s2.6nu.f.braennstroem@xxxxxxxxxxxxxxxxxxxxx> <20060214123035.GC5744@xxxxxxxxxxxxxxx>
- Reply-to: f.braennstroem@xxxxxx
- Sender: news <news@xxxxxxxxxxxxx>
Hi Frank,
* Frank Terbeck <frank.terbeck@xxxxxxxxxxxxxx> wrote:
> Fabian Braennstroem <f.braennstroem@xxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author