about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-04-25 14:15:09 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-04-25 14:15:09 +0000
commit7d36150a8d34d0c849c8186df07ccad8d3a211fb (patch)
tree6f3cbb82aa1347ce83f085620aac5bce53c11fe1 /Completion
parenta5f7097d9ab59d1fd9d21b1b22ac87c3e0877ffe (diff)
downloadzsh-7d36150a8d34d0c849c8186df07ccad8d3a211fb.tar.gz
zsh-7d36150a8d34d0c849c8186df07ccad8d3a211fb.tar.xz
zsh-7d36150a8d34d0c849c8186df07ccad8d3a211fb.zip
Haakon Riiser: 18473: new completion for Acrobat Reader 5.0.x
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_pdf2
-rw-r--r--Completion/X/Command/.distfiles2
-rw-r--r--Completion/X/Command/_acroread52
3 files changed, 54 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_pdf b/Completion/Unix/Type/_pdf
index 30d03e397..7be916b15 100644
--- a/Completion/Unix/Type/_pdf
+++ b/Completion/Unix/Type/_pdf
@@ -1,4 +1,4 @@
-#compdef acroread pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdfopt pdffonts
+#compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdfopt pdffonts
 
 local expl ext=''
 
diff --git a/Completion/X/Command/.distfiles b/Completion/X/Command/.distfiles
index 82c56c1ba..c51c6087f 100644
--- a/Completion/X/Command/.distfiles
+++ b/Completion/X/Command/.distfiles
@@ -2,5 +2,5 @@ DISTFILES_SRC='
 .distfiles
 _gv        _netscape  _xauth     _xfig      _mozilla   _xterm     _xwit
 _nedit     _vnc       _x_utils   _xdvi      _xmodmap   _xset      _xv
-_dcop      _gqview    _xloadimage
+_acroread  _dcop      _gqview    _xloadimage
 '
diff --git a/Completion/X/Command/_acroread b/Completion/X/Command/_acroread
new file mode 100644
index 000000000..acb7c8b81
--- /dev/null
+++ b/Completion/X/Command/_acroread
@@ -0,0 +1,52 @@
+#compdef acroread
+
+local context state line
+typeset -A opt_args
+
+local global_opts
+global_opts=(
+    "*:pdf_file_1 [pdf_file_2] ...:_files -g '*.(#i)pdf'"
+    "-display:host\:display:"
+    "-geometry:[<width>x<height>][{+|-}<x offset>{+|-}<y offset>]:"
+    -help
+    -helpall
+    \*-iconic
+    \*+iconic
+    "-name:application name:"
+    "*-setenv:<var>=<value>:"
+    -tempFile
+    "-tempFileTitle:title:"
+    "(+useFrontEndProgram)-useFrontEndProgram" "(-useFrontEndProgram)+useFrontEndProgram"
+    "-visual:or <visual class> [depth=<depth>]:(id= best default)"
+    "-xrm:X resource specification:"
+    "-toPostScript:*::PostScript conversion options:= ->tops"
+)
+
+local tops_opts
+tops_opts=(
+    "-pairs:*:pdf_file_1 ps_file_1 ...:_files -g '*.(#i)(pdf|ps)'"
+    -binary
+    "-start:integer:"
+    "-end:integer:"
+    -optimizeForSpeed
+    -landscape
+    -reverse
+    "(-even)-odd"
+    "(-odd)-even"
+    -commentsOff
+    "(-level2 -level3)-level1"
+    "(-level1 -level3)-level2"
+    "(-level1 -level2)-level3"
+    -printerhalftones
+    -saveVM
+    "-scale:integer:"
+    -shrink
+    "-size:page size (or custom size wxh in points):(letter tabloid ledger legal executive a3 a4 a5 b4 b5)"
+    "-transQuality:transparency flattening level:(1 2 3 4 5)"
+    "*:pdf_file ... [ps_dir]:_files -g '*.(#i)pdf'"
+)
+
+_arguments $global_opts && return 0
+[[ "$state" = tops ]] && _arguments $tops_opts && return 0
+
+return 1