From: Mikael Magnusson <mikachu@gmail.com>
To: Danek Duvall <duvall@comfychair.org>, zsh-workers@zsh.org
Subject: Re: completing a comma-separated pair of values
Date: Fri, 4 Mar 2011 00:27:25 +0100 [thread overview]
Message-ID: <AANLkTinR9Z7LAW9HYKq_Z7SLNc7ZRT9V87Z7gSdiUF8Z@mail.gmail.com> (raw)
In-Reply-To: <20110303230047.GA12871@lorien.comfychair.org>
On 4 March 2011 00:00, Danek Duvall <duvall@comfychair.org> wrote:
> I'm not sure if this is something I can do with the stock completion
> widgets, and I can't think of any examples of this off the top of my head,
> but what I need to be able to do is to complete a comma-separated pair of
> values, where the order is important, and one side needs more complicated
> completion (takes a path). That is:
>
> property=value1,value2
>
> I can almost get this with _values, but it requires the values to be in the
> form <key>[<kvsep><value>], rather than <value>, and I can't simply make
> the values keys.
>
> Am I making any sense? Do I have to write a copy of _values to do this?
I'm about to go to bed and didn't read that carefully, but do you want
_dir_list -s , maybe?
--
Mikael Magnusson
next prev parent reply other threads:[~2011-03-03 23:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 23:00 Danek Duvall
2011-03-03 23:27 ` Mikael Magnusson [this message]
2011-03-03 23:58 ` Danek Duvall
2011-03-05 1:00 ` Danek Duvall
2011-03-05 9:20 ` Štěpán Němec
2011-03-05 14:15 ` Danek Duvall
2011-03-06 22:28 ` Oliver Kiddle
2011-03-06 22:59 ` Danek Duvall
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=AANLkTinR9Z7LAW9HYKq_Z7SLNc7ZRT9V87Z7gSdiUF8Z@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=duvall@comfychair.org \
--cc=zsh-workers@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).