Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When _alternative separates the options?
- X-seq: zsh-users 24374
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: When _alternative separates the options?
- Date: Mon, 21 Oct 2019 12:06:19 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1571652378; bh=54+N3xVdeW/p5q28FFTTddoy5BvJfnedgG8SNZ/pYiU=; h=From:References:To:Subject:Date:From:Subject; b=ObZX2WkbeeNRna6/ev/v5y3B55vUHNTo03BmCjo/l2BRLNyNC9se53Szg9VOYV+HCJj7LzL2J7cNrS22pFVeZLp7CQjkrGePFzgXDyB7ghp0alMnlrUBhRA3cgmo64pp91rBFHewwmXmiSaO2/yPs4jSqrzHcRZFphVlw1DyTUbexd84B25PeSC02+sswlY1AFlzDh7JfNTyUpXINLIp/NJyGeoAGysvsV7ydAPxitsWNx9HThRbDw7EFRefkfYspPqwgDoB2ZhY/CefhZTrpd1hFZkxN/BrUsgJtOpd/rfaDnZHAXQagqQmwTCn+YVgcIIR5GhzNvKxVLSOLWblHA==
- In-reply-to: <CAKc7PVDrKVZ65dOdWTNOjzX-U2LNYOO7kKTzx1=jFxgGmyBVfA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDSVufe8WGmwtgiWEdW8NyLCbqJzNstYZ4e_yDWJ73mCg@mail.gmail.com> <7319B2C0-2145-46F8-9CC3-403F2864A61A@dana.is> <CAKc7PVDrKVZ65dOdWTNOjzX-U2LNYOO7kKTzx1=jFxgGmyBVfA@mail.gmail.com>
Sebastian Gniazdowski wrote:
> _alternative 'snippets:downloaded snippets:compadd -a - snippets' \
> 'snippets:already loaded snippets:compadd -a - snippets_alreadyld' \
> 'files:file:_files' && \
> ret=1
>
> The "downloaded snippets" and "already loaded snippets" will be
> merged. Is there a way to separate those?
Try giving them a different tag. Otherwise they will end up in the same
group. So something like:
_alternative \
'downloaded-snippets:downloaded snippet:compadd -a - snippets' \
'already-loaded-snippets:already loaded snippet:compadd -a - snippets_alreadyld'
...
As an aside, the normal zsh convention is plural form for the tags and
singular for the group descriptions.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author