summaryrefslogtreecommitdiff
path: root/Completion/X/Command/_mupdf
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
commit719a715614f2182a76b30ad27a327d70a86f34f1 (patch)
treea437eb29da8035bf7c2e30506c08fe6f15719871 /Completion/X/Command/_mupdf
parent7da8d19c224860ae4d6aa3f077fca7f734f20d88 (diff)
parentef61918398517473b9b594690a3be375f607cebe (diff)
downloadzsh-719a715614f2182a76b30ad27a327d70a86f34f1.tar.gz
zsh-719a715614f2182a76b30ad27a327d70a86f34f1.zip
Merge tag 'zsh-5.5.1-test-2' into debian
Test release: 5.5.1-test-2.
Diffstat (limited to 'Completion/X/Command/_mupdf')
-rw-r--r--Completion/X/Command/_mupdf53
1 files changed, 53 insertions, 0 deletions
diff --git a/Completion/X/Command/_mupdf b/Completion/X/Command/_mupdf
new file mode 100644
index 000000000..8a3c76459
--- /dev/null
+++ b/Completion/X/Command/_mupdf
@@ -0,0 +1,53 @@
+#compdef mupdf
+
+local -a ext=(
+ cbt
+ cbz
+ tar
+ zip
+ epub
+ gproof
+ fb2
+ htm
+ html
+ xhtml
+ xml
+ bmp
+ gif
+ hdp
+ j2k
+ jfif
+ jfif-tbnl
+ jp2
+ jpe
+ jpeg
+ jpg
+ jpx
+ jxr
+ pam
+ pbm
+ pgm
+ png
+ pnm
+ ppm
+ tif
+ tiff
+ wdp
+ pdf
+ pclm
+ ai
+ svg
+ oxps
+ xps
+)
+
+_arguments -S -s -A '-*' \
+ '-p+[use specified password]:password:' \
+ '-r+[specify initial zoom level]:resolution [72]:' \
+ '-A+[specify anti-aliasing quality]:bits [8]:({0..8})' \
+ '-C+[specify full-page tint:tint (RRGGBB) [FFFAF0]:' \
+ '-W+[specify page width]:width:' \
+ '-H+[specify page height]:height:' \
+ '-S+[specify font size]:font size:' \
+ '-U+[specify user style sheet]:CSS file:_files' \
+ ': :_files -g "*(#i).(${(j:|:)ext})(-.)"'