summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kuhn <github@ikkoku.de>2026-03-06 22:40:00 +0100
committerdana <dana@dana.is>2026-05-18 21:40:46 -0500
commit710a8f011ef456cd01751ec059d2c9b169335a5c (patch)
tree60340176f048a6e8515e4b1e9c8c30b0e4a01e57
parentgithub #172: Completion for "sioyek" (PDF viewer) (diff)
downloadzsh-master.tar
zsh-master.tar.gz
zsh-master.tar.bz2
zsh-master.tar.lz
zsh-master.tar.xz
zsh-master.tar.zst
zsh-master.zip
github #160 (tweaked): New Papers completionHEADmaster
Papers is the successor of Evince, see: https://gitlab.gnome.org/GNOME/papers tweaked to use groups, fix exclusions, adjust wording, etc
-rw-r--r--ChangeLog5
-rw-r--r--Completion/X/Command/_papers18
2 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 544a897a3..71e67f1af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-05-18 dana <dana@dana.is>
+
+ * Michael Kuhn: github #160 (tweaked):
+ Completion/X/Command/_papers: New Papers completion
+
2026-05-18 Oliver Kiddle <opk@zsh.org>
* github #172: gi1242: Completion/X/Command/_sioyek: Completion
diff --git a/Completion/X/Command/_papers b/Completion/X/Command/_papers
new file mode 100644
index 000000000..1c6076728
--- /dev/null
+++ b/Completion/X/Command/_papers
@@ -0,0 +1,18 @@
+#compdef papers
+
+_arguments -s -S : \
+ + '(help)' \
+ '(- : *)--version[display version information]' \
+ '(- : *)'{-h,--help}'[display help information]' \
+ '(- : *)--help-all[display all help information]' \
+ '(- : *)--help-gapplication[display help information for GApplication options]' \
+ + '(mode)' \
+ {-f,--fullscreen}'[run in fullscreen mode]' \
+ {-s,--presentation}'[run in presentation mode]' \
+ + '(page)' \
+ {-p,--page-label=}'[specify page label of document to display]:page label:' \
+ {-i,--page-index=}'[specify page number of document to display]:page index:' \
+ {-n,--named-dest=}'[specify named destination to display]:named destination:' \
+ + etc \
+ '--gapplication-service[enter GApplication service mode]' \
+ '*:document file:_files -g "*.(#i)(cb7|cbr|cbt|cbz|djv|djvu|pdf|tif|tiff)(-.)"'