Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh completion of just latex files
- X-seq: zsh-users 7594
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh completion of just latex files
- Date: Wed, 23 Jun 2004 08:59:30 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <idugd0hm8c8qo3opan6b12o3aohi3bnc5h@xxxxxxx> <Pine.LNX.4.44.0406222348450.28797-100000@xxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author