about summary refs log tree commit diff
path: root/Completion/X/Command/_acroread
blob: 41c6b99f48e232e122ab0ed67b627d305077765a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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