zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@zsh.org
Subject: Re: [patch] _rmdir
Date: Mon, 30 Apr 2018 01:21:33 +0200	[thread overview]
Message-ID: <26133.1525044093@thecus> (raw)
In-Reply-To: <20180428050112.GA81400@CptOrmolo.darkstar>

Matthew Martin wrote:
>
> Is there an established position for --help and --version? Completing
> them would be more complete, but also useless noise in my opinion.

With most zsh completion things, the established position is to include
them and leave it up to the user to disable what they don't want with
styles. There are things I wouldn't include like deprecated options but I
do tend to include --help and --version. Completing them can be useful.

So if you find them to be useless noise, you can set:

  zstyle ':completion:*:options' ignored-patterns '--(help|usage|version)'

You might prefer to apply the hidden style to them using a tag-order
style with labels.

Unfortunately, where the option is just -h, -?, -v or -V your options
are limited. We perhaps need some way to select matches by description.
Or we could expand the groups functionality in _arguments to make, e.g.
the '?' group special.

Oliver


      reply	other threads:[~2018-04-29 23:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-28  5:01 Matthew Martin
2018-04-29 23:21 ` Oliver Kiddle [this message]

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=26133.1525044093@thecus \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@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).