zsh-users
 help / color / mirror / code / Atom feed
From: Pierre HABOUZIT <pierre.habouzit@m4x.org>
To: zsh-users@sunsite.dk
Subject: Re: zsh completion of just latex files
Date: Wed, 23 Jun 2004 09:08:07 +0200	[thread overview]
Message-ID: <20040623070807.GE31781@madism.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0406222348450.28797-100000@toltec.zanshin.com>

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]

> 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.

I would like to do something like that but that creates a new group
name. for me it's not with vtex at all, but for kghostview (a gv like)

I would like to have two groups :

---- PostScript or PDF files

printing on my screen before the file list.
(btw I have the correct formats in my .zshrc)

is that possible ?

-- 
Pierre Habouzit
 
http://www.madism.org/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-06-23  7:09 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
2004-06-23  7:01 ` Bart Schaefer
2004-06-23  7:08   ` Pierre HABOUZIT [this message]
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=20040623070807.GE31781@madism.org \
    --to=pierre.habouzit@m4x.org \
    --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).