From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: When _alternative separates the options?
Date: Mon, 21 Oct 2019 12:31:18 +0200 [thread overview]
Message-ID: <CAKc7PVAhAwu6f+o6SNH08KRvHydQO2oMvSODO22i4S1iiou_TQ@mail.gmail.com> (raw)
In-Reply-To: <48642-1571652379.461981@lX9h.cJ01.1vpJ>
On Mon, 21 Oct 2019 at 12:06, Oliver Kiddle <okiddle@yahoo.co.uk> 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
prev parent reply other threads:[~2019-10-21 10:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-20 13:08 Sebastian Gniazdowski
2019-10-20 21:22 ` dana
2019-10-21 9:42 ` Sebastian Gniazdowski
2019-10-21 10:06 ` Oliver Kiddle
2019-10-21 10:31 ` Sebastian Gniazdowski [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=CAKc7PVAhAwu6f+o6SNH08KRvHydQO2oMvSODO22i4S1iiou_TQ@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=okiddle@yahoo.co.uk \
--cc=zsh-users@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).