From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26222 invoked by alias); 3 Mar 2011 23:27:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28850 Received: (qmail 21886 invoked from network); 3 Mar 2011 23:27:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: <20110303230047.GA12871@lorien.comfychair.org> References: <20110303230047.GA12871@lorien.comfychair.org> Date: Fri, 4 Mar 2011 00:27:25 +0100 Message-ID: Subject: Re: completing a comma-separated pair of values From: Mikael Magnusson To: Danek Duvall , zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 4 March 2011 00:00, Danek Duvall 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 [], rather than , 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