Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [patch] _rmdir
- X-seq: zsh-workers 42731
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [patch] _rmdir
- Date: Mon, 30 Apr 2018 01:21:33 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1525044105; bh=EGQgM7R+kDM+s0GEkjAIaYCVaOTDGSW7h50hoP+WOYc=; h=From:References:To:Subject:Date:From:Subject; b=Whgla8ECMyY/3hXJhkEcWN7QuDesnbjUat3HaPxk/eLmpZJqYBOT/CEfhCfvB4pHQt5ZMABu7VeCGoCTCiFPHKOgfSxoXblbhlcEV7kYmLmdyPS+ZXE+Qyl/xXJvpTAQJABl9LREme5zXv4hPlhxTLa0Rd7zT0PXXQE3XnyjGW1eGN1yVT7F94Zdx0dznZMC/xrn1qMl5hQ3m9lPXgfCcUJgyV4M0kOYEkmhogd19J/Gw5VZUf01LIP+WGSZBIHi/ZwxeGD4iJFhDWeZ1aDuCkamuPP+7OjcD+YMPZpKgnRtRFhvFPmrIbn9I1+09gdz/fWTkHVO+H0BthXlJq3rUg==
- In-reply-to: <20180428050112.GA81400@CptOrmolo.darkstar>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author