From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Cc: Pier Paolo Grassi <pierpaolog@gmail.com>
Subject: Re: completion with separator
Date: Sat, 7 May 2022 15:19:41 -0700 [thread overview]
Message-ID: <CAH+w=7ZXfqdeFBLDGYq9wz3RFbg-T6_NOcZb=+8yL5KjUK4Xgg@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xC9gFytVbRi9xJj2fK26Y2sLRw-VY2VSfpXLMB8L3bhwA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
There's actually a bug in _values. It doesn't help with Pier's use
case, but it might explain some other weirdness. This has been around
a LONG time.
[-- Attachment #2: _values_sep.txt --]
[-- Type: text/plain, Size: 584 bytes --]
diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values
index 688ada848..5ed79e890 100644
--- a/Completion/Base/Utility/_values
+++ b/Completion/Base/Utility/_values
@@ -60,7 +60,7 @@ if compvalues -i "$keep[@]" "$@"; then
_describe "$descr" \
noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \
args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \
- opts -qS "${argsep}" -r "${argsep}${sep} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
+ opts -qS "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
curcontext="$oldcontext"
parent reply other threads:[~2022-05-07 22:20 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <CAP+y1xC9gFytVbRi9xJj2fK26Y2sLRw-VY2VSfpXLMB8L3bhwA@mail.gmail.com>]
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='CAH+w=7ZXfqdeFBLDGYq9wz3RFbg-T6_NOcZb=+8yL5KjUK4Xgg@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=pierpaolog@gmail.com \
--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).