Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
update gv completion?
- X-seq: zsh-users 26645
- From: Marc Chantreux <eiro@xxxxxxxxx>
- To: Zsh hackers list <zsh-users@xxxxxxx>
- Subject: update gv completion?
- Date: Sat, 10 Apr 2021 11:41:26 +0200
- Archived-at: <https://zsh.org/users/26645>
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org B214DFF32
- List-id: <zsh-users.zsh.org>
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)' \
Messages sorted by:
Reverse Date,
Date,
Thread,
Author