zsh-users
 help / color / mirror / code / Atom feed
From: Marc Chantreux <eiro@phear.org>
To: Zsh hackers list <zsh-users@zsh.org>
Subject: update gv completion?
Date: Sat, 10 Apr 2021 11:41:26 +0200	[thread overview]
Message-ID: <YHFyxlypMUX9UOCf@prometheus.u-strasbg.fr> (raw)

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)' \


                 reply	other threads:[~2021-04-10  9:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YHFyxlypMUX9UOCf@prometheus.u-strasbg.fr \
    --to=eiro@phear.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).