aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-08-22 15:12:08 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-08-22 15:12:08 +0000
commit2fe227ff13556508ed844e8996c8c3bc8401a4a3 (patch)
tree0539c300af47dee89a9877a3128d5c4b1b9d3961
parent3b01959864997c8b74b5a005a01f671227ab64f6 (diff)
downloadzsh-2fe227ff13556508ed844e8996c8c3bc8401a4a3.tar.gz
zsh-2fe227ff13556508ed844e8996c8c3bc8401a4a3.tar.xz
zsh-2fe227ff13556508ed844e8996c8c3bc8401a4a3.zip
18473: new _acroread
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_pdf2
-rw-r--r--Completion/X/Command/.distfiles4
-rw-r--r--Completion/X/Command/_acroread43
4 files changed, 51 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2060da77a..8cf2a1835 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -226,6 +226,11 @@
separating source and replacment text in ${foo//bar/stuff} was
buggy.
+2003-04-25 Oliver Kiddle <opk@zsh.org>
+
+ * Haakon Riiser: 18473: Completion/X/Command/_acroread,
+ Completion/Unix/Type/_pdf: new completion for Acrobat Reader 5.0.x
+
2003-04-24 Oliver Kiddle <opk@zsh.org>
* unposted: Completion/Unix/Type/_perl_basepods: use _message
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 710b9ab5b..391411168 100644
--- a/Completion/X/Command/.distfiles
+++ b/Completion/X/Command/.distfiles
@@ -1,6 +1,6 @@
DISTFILES_SRC='
.distfiles
-_gv _netscape _xauth _xfig _xrdb _xterm _xwit
+_gv _netscape _xauth _xfig _mozilla _xterm _xwit
_nedit _vnc _x_utils _xdvi _xmodmap _xset _xv
-_dcop _gqview _mozilla _xloadimage
+_acroread _dcop _gqview _xloadimage _mplayer
'
diff --git a/Completion/X/Command/_acroread b/Completion/X/Command/_acroread
new file mode 100644
index 000000000..051a32151
--- /dev/null
+++ b/Completion/X/Command/_acroread
@@ -0,0 +1,43 @@
+#compdef acroread
+
+local curcontext="$curcontext" state line
+
+_x_arguments -C \
+ -help \
+ -helpall \
+ \*-iconic \
+ \*+iconic \
+ '-name:application name:_x_name' \
+ '*-setenv:<var>=<value>' \
+ -tempFile \
+ '-tempFileTitle:title' \
+ '(+useFrontEndProgram)-useFrontEndProgram' \
+ '(-useFrontEndProgram)+useFrontEndProgram' \
+ '-visual:X visual:_x_visual' \
+ '-xrm:X resource specification:_x_resource' \
+ '-toPostScript:*::PostScript conversion options:= ->tops' \
+ '*:pdf file:_files -g "*.(#i)pdf"' && return
+
+[[ -n "$state" ]] && _arguments \
+ '-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:_files -g "*.(#i)pdf"' && return
+
+return 1