zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#304198: zsh: Please provide completion for zxpdf
       [not found] <20050411162137.GA27673@ay.vinc17.org>
@ 2005-04-11 18:09 ` Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2005-04-11 18:09 UTC (permalink / raw)
  To: zsh-workers; +Cc: Vincent Lefevre, 304198

> The xpdf-reader package comes with a wrapper script zxpdf, that
> decompresses the file if need be. The completion should be the
> same as for xpdf, except that the following suffixes should be
> recognized: pdf, PDF, gz, Z, bz2.
> 
> Note: for the moment, there are no completions for the xpdf options,
> but if this is added, then zxpdf should get them too.

Index: Completion/Unix/Type/_pdf
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_pdf,v
retrieving revision 1.5
diff -u -r1.5 _pdf
--- Completion/Unix/Type/_pdf	18 Nov 2004 15:18:11 -0000	1.5
+++ Completion/Unix/Type/_pdf	11 Apr 2005 18:06:14 -0000
@@ -1,4 +1,4 @@
-#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdfopt pdffonts kpdf
+#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf
 
 local expl ext=''
 
@@ -8,7 +8,7 @@
 #  pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdffonts
 
 if [[ "$1" == '-z' ]]; then
-  ext='(|.gz|.Z)'
+  ext='(|.gz|.bz2|.Z)'
   shift
 fi
 
Index: Completion/X/Command/_xpdf
===================================================================
RCS file: Completion/X/Command/_xpdf
diff -N Completion/X/Command/_xpdf
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/X/Command/_xpdf	11 Apr 2005 18:06:14 -0000
@@ -0,0 +1,31 @@
+#compdef xpdf zxpdf
+
+_xt_arguments \
+  '-g[initial window geometry]:geometry:_x_geometry' \
+  '-cmap[install a private colormap]' \
+  '-rgb[biggest RGB cube to allocate]:int:' \
+  '-papercolor[color of paper background]:color:' \
+  '-z[initial zoom level]:zoom level:' \
+  '-t1lib[enable t1lib font rasterizer]:bool:(yes no)' \
+  '-freetype[enable FreeType font rasterizer]:bool:(yes no)' \
+  '-aa[enable font anti-aliasing]:bool:(yes no)' \
+  '-ps[default PostScript file name or command]:file or command:_files' \
+  '-paper[paper size]:paper size:(letter legal A4 A3 match)' \
+  '-paperw[paper width]:points:' \
+  '-paperh[paper height]:points:' \
+  '-level1i[generate Level 1 PostScript]' \
+  '-enc[output text encoding name]:name:' \
+  '-eol[output end-of-line convention]:convention:(unix dos mac)' \
+  '-opw[owner password]:password:' \
+  '-upw[user password]:password:' \
+  '-fullscreen[run in full-screen (presentation) mode]' \
+  '-remote[start/contact xpdf remote server with specified name]:server:_hosts' \
+  '-reload[reload xpdf remove server window (with -remote only)]' \
+  '-raise[raise xpdf remote server window (with -remote only)]' \
+  '-quit[kill xpdf remote server (with -remote only)]' \
+  '-cmd[print commands as they are executed]' \
+  '-q[do not print any messages or errors]' \
+  '-cfg[configuration file to use in place of .xpdfrc]:file:_files' \
+  '-v[print copyright and version info]' \
+  '(-h -help --help -?)'{-h,-help,--help,-\?}'[print usage information]' \
+  ':PDF: _pdf '"${${service/xpdf/}:+-z}"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-11 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050411162137.GA27673@ay.vinc17.org>
2005-04-11 18:09 ` Bug#304198: zsh: Please provide completion for zxpdf Clint Adams

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