zsh-users
 help / color / mirror / Atom feed
* 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

zsh-users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ http://inbox.vuxu.org/zsh-users \
		zsh-users@zsh.org
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git