Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Complete value from list with colons
- X-seq: zsh-users 24181
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Scott Frazer" <frazer.scott@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Complete value from list with colons
- Date: Sat, 24 Aug 2019 17:26:28 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type; s=fm1; bh=DEdF0YS g/ncAvxDEyZ0qF2giQLT6K1orN7iCO+seAdY=; b=LSCbo2U3/bWIhgKOk8Ca4lt CG+sbIU4Lsi88Q1W5YhzYTFjjbEeiD6G34nsszxxv0tnEqaglygklMnk8OnU6r9R JuvpJLxGDYk8K2rAvCZgot2eZsdNe8a9IVGAQ9SgcmnpKFhU9S8hnyNWFTTL3YuG ChA1nhPehFSXmKDNbSU2AFZFORST3G+pKF3DDaXwl5jAkuQpk+1/yl2g877HaJ7G sVFZc8QusQ8GJUm0GuwMmvtEsll8v8Iniev3CNQij+wq9xE/e+cQYC3Er4BH4+QH OUyQMEOwYqLmRf2K0Ey1B6k1ofhT/5wgnu4EeFReyQdMHWpzmI67tRAm9bOuDZQ= =
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=DEdF0Y Sg/ncAvxDEyZ0qF2giQLT6K1orN7iCO+seAdY=; b=dXCRl7w4pY1QVJI9Vus/0o PXvneDQt3hpwFYDP8CZRpyqcoRhRoJw5yxSFN/bRiYMBhVC7YoojlFKzUaz3tHxx cfKFelGPWLqRgzbPAfu9j9gre67FIBLtcpkn9+YIS10eyKuUz/bKvw6T1IUq+uHw Q7i5N9MGYwZM6pXDhTLpIU2lXpVHFbcSRk5H55a7C2uS8JXG1ZAxz43yOCY1KKmw dDXs3AYfE3VT49wWr/g1qbJq+v28kfqUGxxbVKr0v2JMdfmkk1u3zE8JZRjtbdu8 Qn/k0oSCYOjIX3ZhvjZtnG8Js0uxoROumL1hsOgo3J5b/SvXLYWdV5Fk7Wm34JeA ==
- In-reply-to: <qjrbd6$2r3q$1@blaine.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <qjrbd6$2r3q$1@blaine.gmane.org>
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 <TAB>
> desc
bar::BAR foo::FOO
%
]]]
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author