Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion: option stacking and arguments!
- X-seq: zsh-users 20776
- From: Vincent Bernat <bernat@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: completion: option stacking and arguments!
- Date: Fri, 16 Oct 2015 23:46:57 +0200
- Dkim-signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=postfix; bh=mjRGavAHo tm+m86KAcnQtm3mYC4=; b=pa39L7ZknV5Qr2R1Zw+Q78K/mR7gsaPBjuQr/jFaN tv4HFu/S5BsSR2HXmHrS2pWplar277WOGjqm8Rjp9L7UDr1u4KC3YPp1NzJi3y5U HEN1xhD1zYrJvB6bztUVtctPdllKTnnLHUG+CfwtL4mrD//ZHAhRXFecAohu5FKA Oo=
- Domainkey-signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=postfix; b=Dlh HPht5A2M7qZ2c8ht4F6mPVHsr7f9E1pD8STchS0BOX/K5F+V3AaoeX0Iq4k3lrYP R8By4WB7DsrUguo3UXrTzrE7Kc1uItgQpwi5ZdNLas8vwjC1CeCyEH0MMgJkL2QU 0EOUMe9r6/avCz4BbZsWQteHYxf071/mihndCU1c=
- In-reply-to: <87vba7tfkg.fsf@zoro.exoscale.ch> (Vincent Bernat's message of "Fri, 16 Oct 2015 09:53:19 +0200")
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <87vba7tfkg.fsf@zoro.exoscale.ch>
❦ 16 octobre 2015 09:53 +0200, Vincent Bernat <bernat@xxxxxxxx> :
> When using completion with "_arguments '-u=[Run as specified
> user]:user:_users'", completing users after "-u" requires a space or an
> equal sign. However, when enabling short option stacking with "-s", this
> is not the case anymore.
>
> How to still require a space/equal before a mandatory argument when
> using option stacking?
Also, even when the short argument is specified with "-l=-" (for
example), zsh still allows completion without any character (but
disallows completion with a space):
docker -Dlerr<tab> -> docker -Dlerror
docker -Dl=err<tab> -> docker -Dl=error
docker -Dl err<tab> -> docker -Dl err
The whole completion is available here:
https://github.com/felixr/docker-zsh-completion/
--
Localise input and output in subroutines.
- The Elements of Programming Style (Kernighan & Plauger)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author