zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: dana <dana@dana.is>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: When _alternative separates the options?
Date: Mon, 21 Oct 2019 11:42:27 +0200	[thread overview]
Message-ID: <CAKc7PVDrKVZ65dOdWTNOjzX-U2LNYOO7kKTzx1=jFxgGmyBVfA@mail.gmail.com> (raw)
In-Reply-To: <7319B2C0-2145-46F8-9CC3-403F2864A61A@dana.is>

On Sun, 20 Oct 2019 at 23:22, dana <dana@dana.is> wrote:
>
> On 20 Oct 2019, at 08:08, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> > I would now like to separate the directories and plugins in the following
> > _alternative call:
> >
> > https://github.com/zdharma/zplugin/blob/208092/_zplugin#L90
> >
> > How to do this?
>
> http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Standard-Styles
>
> zstyle ':completion:*' group-name ''
>
> (or ':completion:*:*:zunit:*' or whatever is appropriate)

Thanks, it works for separating the files and directories, however not
for separating the results added with compadd:

_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?

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org

  reply	other threads:[~2019-10-21  9:43 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 [this message]
2019-10-21 10:06     ` Oliver Kiddle
2019-10-21 10:31       ` Sebastian Gniazdowski

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='CAKc7PVDrKVZ65dOdWTNOjzX-U2LNYOO7kKTzx1=jFxgGmyBVfA@mail.gmail.com' \
    --to=sgniazdowski@gmail.com \
    --cc=dana@dana.is \
    --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).