From 2fe227ff13556508ed844e8996c8c3bc8401a4a3 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 22 Aug 2003 15:12:08 +0000 Subject: 18473: new _acroread --- ChangeLog | 5 +++++ Completion/Unix/Type/_pdf | 2 +- Completion/X/Command/.distfiles | 4 ++-- Completion/X/Command/_acroread | 43 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 Completion/X/Command/_acroread 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 + + * Haakon Riiser: 18473: Completion/X/Command/_acroread, + Completion/Unix/Type/_pdf: new completion for Acrobat Reader 5.0.x + 2003-04-24 Oliver Kiddle * 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:=' \ + -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 -- cgit 1.4.1