summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Type/_pdf4
-rw-r--r--Completion/X/Command/_xpdf31
3 files changed, 39 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d24e69ba..ba385b60c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-11  Clint Adams  <clint@zsh.org>
+
+	* 21132: Completion/Unix/Type/_pdf, Completion/X/Command/_xpdf:
+	complete xpdf options, and also complete .pdf.bz2 files when
+	completing compressed PDF files.
+
 2005-04-11  Peter Stephenson  <pws@csr.com>
 
 	* 21131: Src/init.c, Test/A01grammar.ztst: exit with status 127
diff --git a/Completion/Unix/Type/_pdf b/Completion/Unix/Type/_pdf
index 386135e7c..95cda4dfd 100644
--- a/Completion/Unix/Type/_pdf
+++ b/Completion/Unix/Type/_pdf
@@ -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 @@ local expl ext=''
 #  pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdffonts
 
 if [[ "$1" == '-z' ]]; then
-  ext='(|.gz|.Z)'
+  ext='(|.gz|.bz2|.Z)'
   shift
 fi
 
diff --git a/Completion/X/Command/_xpdf b/Completion/X/Command/_xpdf
new file mode 100644
index 000000000..c2b8715ea
--- /dev/null
+++ b/Completion/X/Command/_xpdf
@@ -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}"