Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: evince completion
- X-seq: zsh-workers 39623
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: evince completion
- Date: Thu, 13 Oct 2016 11:11:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1476349882; bh=ur6OS9wgBhQShoQBzY8wbZ4albRGddFhomEKPfndu+U=; h=From:To:Subject:Date:From:Subject; b=nQ4SLcUGq8R3JfNdnd07tq+gu5Izlj9uQMBDc3VrLd8BNn/xgoB10/Lpz4DUMFvztIW4yCgpmc2F3ORsKYsD5YF/3um9obBch/p0tUD3UNYedd64Xq5UY4k6os7OypvsU6f1qYYGa28K0p1qioBJrTou7tfZ3KyGU0P84leGIgYspvOJIIpTn/df/8iVsC09KZxW+yvxFRbBmdFod0lUx+Jzf/sMgIkz2ZNTEEnF9/7ERLjwR8PUihrkuOciC3+KsmNnfDhgp0Z8tMYy6MwUpbVlPeZBK5HbnO5fMtjZsYW9UEEHtOV/wQaiDfjoEaZOoMPN4YVxBf0o4Grw4Br0IQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The GTK options could perhaps be factored out into a _gtk_arguments
function. Flags and modules could be completed by using pkg-config to
find the relevant paths to modules. However, I've never had a need to
use that stuff whereas the -l option is sometimes useful.
I don't see the session management options everywhere. I'm not sure if
this is because they've gone in newer versions or if they are only valid
when appropriate dbus services are also found.
Oliver
diff --git a/Completion/Unix/Type/_pspdf b/Completion/Unix/Type/_pspdf
index d0ca31a..5bb8650 100644
--- a/Completion/Unix/Type/_pspdf
+++ b/Completion/Unix/Type/_pspdf
@@ -1,4 +1,4 @@
-#compdef evince gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv pstoedit pstotgif zathura
+#compdef gsbj gsdj gsdj500 gslj gslp gsnd ps2ascii ghostview mgv pstoedit pstotgif zathura
local expl ext
diff --git a/Completion/X/Command/_evince b/Completion/X/Command/_evince
new file mode 100644
index 0000000..48d5a9a
--- /dev/null
+++ b/Completion/X/Command/_evince
@@ -0,0 +1,30 @@
+#compdef evince
+
+_arguments -s -S \
+ - '(help)' \
+ '--version[display version information]' \
+ {-h,--help}'[display help information]' \
+ '--help-all[display help on all options]' \
+ '--help-sm-client[display help on session management options]' \
+ '--help-gtk[display help on GTK+ options]' \
+ - normal \
+ '--sm-client-disable[disable connection to session manager]' \
+ '--sm-client-state-file=[specify file containing saved configuration]:file:_files' \
+ '--sm-client-id=[specify session management ID]:id' \
+ '--class=[specify program class as used by the window manager]:class' \
+ '--name=[program name as used by the window manager]:name:_x_name' \
+ '--gdk-debug=[specify GDK debugging flags to set]:flag' \
+ '--gdk-no-debug=[specify GDK debugging flags to unset]:flag' \
+ '--gtk-module=[load additional GTK+ modules]:module' \
+ '--g-fatal-warnings[make all warnings fatal]' \
+ '--gtk-debug=[specify GTK+ debugging flags to set]:flag' \
+ '--gtk-no-debug=[specify GTK+ debugging flags to unset]:flag' \
+ '(-p --page-label -i --page-index -n --named-dest)'{-p,--page-label=}'[specify page label of the document to display]' \
+ '(-p --page-label -i --page-index -n --named-dest)'{-i,--page-index=}'[specify page number of the document to display]' \
+ '(-p --page-label -i --page-index -n --named-dest)'{-n,--named-dest=}'[specify named destination to display]' \
+ '(-f --fullscreen -s --presentation -w --preview)'{-f,--fullscreen}'[run evince in fullscreen mode]' \
+ '(-f --fullscreen -s --presentation -w --preview)'{-s,--presentation}'[run evince in presentation mode]' \
+ '(-f --fullscreen -s --presentation -w --preview)'{-w,--preview}'[run evince as a previewer]' \
+ '(-l --find)'{-l,--find=}'[specify word or phrase to find in the document]:word or phrase' \
+ '--display=[specify X display]:display:_x_display' \
+ '*:document file:_files -g "*.(#i)(dvi|djvu|pdf|ps|eps|tif|tiff)(-.)"' \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author