* update gv completion?
@ 2021-04-10 9:41 Marc Chantreux
0 siblings, 0 replies; only message in thread
From: Marc Chantreux @ 2021-04-10 9:41 UTC (permalink / raw)
To: Zsh hackers list
hello people,
i just realize that zsh doesn't complete a classic usage of gv
gv -fullscreen -widgetless
so i compared the current gv --help with _gv and added some
options. i made it possible to write -fullscreen (which i
think is gv idiomatic) instead of --fullscreen. as a result:
* the completion appears twice in the list
* this is different from the rest of the completion
it would be nice to have something consistent and i see 3 scenarii:
* - only
* -- only
* both
i will personally chose the first.
regards
diff --git a/Completion/X/Command/_gv b/Completion/X/Command/_gv
index cde8a1c1a..9b11ad31c 100644
--- a/Completion/X/Command/_gv
+++ b/Completion/X/Command/_gv
@@ -28,8 +28,11 @@ _arguments \
'(--portrait --seascape --upsidedown)--landscape' \
'(--portrait --landscape --upsidedown)--seascape' \
'(--portrait --landscape --seascape)--upsidedown' \
- --{help,spartan} \
-{h,v} \
+ -{,-}{help,version} \
+ -{,-}{spartan,widgetless,presentation,fullscreen} \
+ -{,-}{infoSilent,infoErrors,infoAll} \
+ -{,-}'password=:password:' \
'--arguments=:ghostscript arguments:' \
'--page=:label of first page:' \
'--media=:page size:(Letter Legal Statement Tabloid Ledger Folio Quarto 10x14 Executive A3 A4 A5 B4 B5)' \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-10 9:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 9:41 update gv completion? Marc Chantreux
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).