Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When _alternative separates the options?
- X-seq: zsh-users 24375
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: When _alternative separates the options?
- Date: Mon, 21 Oct 2019 12:31:18 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lkfxKfx2Tei5H68HCdoBj7eiAa1z48yJdKXQWfSlT1c=; b=pxIS2Yd88KfnTD3qPo16bU4hSmt5P+dsIittKuF8MVucFV6L84JVoiJAbj45pfUB7o qARRdAbguTqs5dsptAjuQwo98f/UUxsC9THlolwJeRsndGgAvuOsI36ooGw0OmwsOU2r c9+Cq0liSzFouzjOqb5c9asianXZUXa7TcXGh4ZwtTWJakpzTS/gHuKq1D+8d3ATH7tf YoTXq1n7v7jpTX7DQ3wT7L3qGpFJm7yym4Vrlm+etlDwSPywOBYYWa/44Xj63JDU1YIn sTx0gAHpHC54ajItzfoD28OCPwDblSzhzw66FvI48JzOVDyNWR6kEc8fVac/dot7SUvq 3y9g==
- In-reply-to: <48642-1571652379.461981@lX9h.cJ01.1vpJ>
- 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> <48642-1571652379.461981@lX9h.cJ01.1vpJ>
On Mon, 21 Oct 2019 at 12:06, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
>
> 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.
Thanks, it helped.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author