Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completing a comma-separated pair of values



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