Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

update gv completion?



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