Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#289664: zsh: completion for gnome-gv
- X-seq: zsh-workers 20665
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#289664: zsh: completion for gnome-gv
- Date: Mon, 10 Jan 2005 13:28:55 -0500
- Cc: Vincent Lefevre <vincent@xxxxxxxxxx>, 289664@xxxxxxxxxxxxxxx
- In-reply-to: <20050110130828.GA27082@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050110130828.GA27082@xxxxxxxxxxxxxxxx>
> There are no completions for gnome-gv yet. gnome-gv accepts .ps files
> (NO pdf), possibly compressed (e.g. with gzip or bzip2). Concerning
> the options, they are given in a standard way by "gnome-gv --help"
> (I don't know if zsh knows to parse that).
This should do the trick.
Index: Completion/Unix/Command/_gnome-gv
===================================================================
RCS file: Completion/Unix/Command/_gnome-gv
diff -N Completion/Unix/Command/_gnome-gv
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_gnome-gv 10 Jan 2005 18:28:25 -0000
@@ -0,0 +1,6 @@
+#compdef gnome-gv ggv
+
+_arguments \
+ '(--help)-\\?[help]' \
+ '(--windows)-w[number of empty windows]:number:' \
+ '*:file: _pspdf -z' --
Index: Completion/Unix/Type/_pspdf
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pspdf,v
retrieving revision 1.2
diff -u -r1.2 _pspdf
--- Completion/Unix/Type/_pspdf 21 Jan 2004 13:53:29 -0000 1.2
+++ Completion/Unix/Type/_pspdf 10 Jan 2005 18:28:25 -0000
@@ -1,4 +1,4 @@
-#compdef gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv ggv pstoedit pstotgif
+#compdef gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv pstoedit pstotgif
local expl ext
Messages sorted by:
Reverse Date,
Date,
Thread,
Author