Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completing a comma-separated pair of values
- X-seq: zsh-workers 28850
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Danek Duvall <duvall@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: completing a comma-separated pair of values
- Date: Fri, 4 Mar 2011 00:27:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=7jO36Y2xAglIpOLDMgy5Tb5oFQ/dDZCOB3GCIvt16CM=; b=FgoKlhm3Y9oh+Yz0OX0bktvGqbcvRZ1XZBjaRYrS9AlTElJvfD0Eu7jtTdx6vS6wds 4j0QfW9xH7u4ASXwWs47MAthSaZ0AxZuMxpuopb65Rifc5/+qRYmwSHIP7H4UD1GruTo +QY5Goj+Mi5akivIs4sfdNx7nL8O+vNXXpMaM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VF47ylLRAdqLgZiTM2eeECp/tv7LoKSTLRBLvRxYUUTl4vOS5ZLVTSUxwhFB+QXGhl JUPhZ/g6qYqukBhZkTQJmNOTT8JuZX5DMUcoQtK8krW1hZtmoGQE0i2xS+gVjrej/qG9 0ufWVG8RHkjHe6iu5P5FvwsQ8Z6+RNTWE8hhA=
- In-reply-to: <20110303230047.GA12871@lorien.comfychair.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20110303230047.GA12871@lorien.comfychair.org>
On 4 March 2011 00:00, Danek Duvall <duvall@xxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author