From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 309975c9 for ; Mon, 26 Aug 2019 13:29:02 +0000 (UTC) Received: (qmail 7661 invoked by alias); 26 Aug 2019 13:28:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24186 Received: (qmail 163 invoked by uid 1010); 26 Aug 2019 13:28:51 -0000 X-Qmail-Scanner-Diagnostics: from 195-159-176-226.customer.powertech.no by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25552. spamassassin: 3.4.2. Clear:RC:0(195.159.176.226):SA:0(3.8/5.0):. Processed in 2.343695 secs); 26 Aug 2019 13:28:51 -0000 X-Envelope-From: gcszu-zsh-users@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at m.gmane.org does not designate permitted sender hosts) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Scott Frazer Subject: Re: Complete value from list with colons Date: Mon, 26 Aug 2019 09:28:07 -0400 Message-ID: References: <8e5ab665-a4fb-4c75-a4a4-0a0734148b71@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 In-Reply-To: <8e5ab665-a4fb-4c75-a4a4-0a0734148b71@www.fastmail.com> Content-Language: en-US On 8/24/2019 1:26 PM, Daniel Shahaf wrote: > Scott Frazer wrote on Sat, 24 Aug 2019 12:44 +00:00: >> I would like to do completion from a list of values that have ':' in >> them, something like: >> >> _values foo a::b c::d >> >> and have it offer 'a::b' and 'c::d' as choices, but I can't figure out >> how to escape the ':' in the completion system. > > Backslashes: > > [[[ > % _f() { _values desc 'foo\:\:FOO' 'bar\:\:BAR' } > % f >> desc > bar::BAR foo::FOO > % > ]]] > > Cheers, > > Daniel > Thanks, I thought I had tried all combinations of quotes and backslashes but apparently not.