Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion: Add _log_priorities, _logger
- X-seq: zsh-workers 44886
- From: dana <dana@xxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Completion: Add _log_priorities, _logger
- Date: Sat, 2 Nov 2019 01:58:37 -0500
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Vt1LKCgf0YvzfxAfhWRQvLWmv+PI4Me4ur4eYLhyzl0=; b=U11QhQpIAfKPJMtzCVGKIvNbjXOpbQQ8UseanaZTAF2rmcLdU83ca6/40OaDlqFHMu /v0msCfUs5JzKhqRdHGM/kO9vzSHnFKzvK4wHEj5baNvYFOfZWEg7PmkeBD+Sp5BVSlK qsWjLkfz/80Gv0JVOrdGk+d28y3tsAP7O4FHzmFjN5oaAS1jPMKmU8na7AIyjT3Q+AHq j54LSnpHx9erOL02shd8ykt9HcfQ6PeeTSTPS4uZV5thMyeDPh5V0QYUoFBPjb0SCV0F ubuooLd6Yfn4J8ZxBDt9xrB9Tuc2tJs7jPrscw/o4WHsjqUUB+lBtCqTxjGxpMI6xLzP pjxw==
- In-reply-to: <4D918504-B8F4-46D5-9F04-8B223A56FDEE@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <E00A62F9-627E-4C0C-A3FD-3A0C1F00D666@dana.is> <20191102055423.5gzbipni3vnjo4k3@tarpaulin.shahaf.local2> <4D918504-B8F4-46D5-9F04-8B223A56FDEE@dana.is>
On 2 Nov 2019, at 01:45, dana <dana@xxxxxxx> wrote:
> That would definitely work, and be easy to parse, though it is a bit
> unattractive, especially given how these functions are often called.
Oh, i realised with your *very* first suggestion, the quoting wouldn't be
quite as bad:
'--foo=[specify foo]: :_my_type -Y-a -Y"my optarg" -Y-bcd'
Though it's certainly strange in a different way.
It would be cool if there was a convenient way to just have a general prefix
for options, so that this kind of thing would work:
'--foo=[specify foo]: :_my_type -Ya "my optarg" -Ybcd'
(The point being that (a) you don't have to repeat the hyphens and (b) it
knows that "my optarg" is an argument to the type function's -a.)
Maybe zparseopts could be extended to do that somehow, if it's not too silly
of an idea.
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author