1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

18473: new _acroread

This commit is contained in:
Oliver Kiddle 2003-08-22 15:12:08 +00:00
parent 3b01959864
commit 2fe227ff13
4 changed files with 51 additions and 3 deletions

View file

@ -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

View file

@ -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=''

View file

@ -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
'

View file

@ -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