From: Sartoo <sartoo@gmx.de>
To: zsh-users@sunsite.dk
Subject: Re: zsh completion of just latex files
Date: Wed, 23 Jun 2004 01:05:06 +0200 [thread overview]
Message-ID: <20040622230506.GA11367@psycho.linux.lan> (raw)
In-Reply-To: <idugd0hm8c8qo3opan6b12o3aohi3bnc5h@4ax.com>
* zzapper wrote:
> Hi,
Hi,
> 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
> I would normally write a function for this, but I guess I should be
> thinking zsh.
> How should I do this?
#v+
compctl -g '*.tex*' + -g '*(-/)' {la,v}tex pdflatex
#v-
I discovered this line in my ~/.zshrc and it works well, well enough for
me, maybe also for you.
For further information you have to RTFM zshcompctl(1).
> zzapper (vim, cygwin, wiki & zsh)
Sartoo
--
Mitleid gibt's umsonst mein Freund -
Neid, muss man sich verdienen.
-- BO Nr.1
next prev parent reply other threads:[~2004-06-22 23:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-22 18:30 zzapper
2004-06-22 23:05 ` Sartoo [this message]
2004-06-23 7:01 ` Bart Schaefer
2004-06-23 7:08 ` Pierre HABOUZIT
2004-06-29 15:29 ` Bart Schaefer
2004-06-29 16:25 ` Pierre HABOUZIT
2004-06-23 7:59 ` zzapper
2004-06-23 15:39 ` zzapper
2004-06-23 19:08 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040622230506.GA11367@psycho.linux.lan \
--to=sartoo@gmx.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).