From: dana <dana@dana.is>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [PATCH] Completion: Add _log_priorities, _logger
Date: Sat, 2 Nov 2019 01:58:37 -0500 [thread overview]
Message-ID: <95142696-7C02-4969-8F55-719FEAF646D8@dana.is> (raw)
In-Reply-To: <4D918504-B8F4-46D5-9F04-8B223A56FDEE@dana.is>
On 2 Nov 2019, at 01:45, dana <dana@dana.is> 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
next prev parent reply other threads:[~2019-11-02 6:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-02 2:14 dana
2019-11-02 5:54 ` Daniel Shahaf
2019-11-02 6:45 ` dana
2019-11-02 6:58 ` dana [this message]
2019-11-02 7:45 ` Daniel Shahaf
2019-11-02 8:20 ` dana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95142696-7C02-4969-8F55-719FEAF646D8@dana.is \
--to=dana@dana.is \
--cc=d.s@daniel.shahaf.name \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).