Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _values: auto-remove argument separator
- X-seq: zsh-workers 54454
- From: dana <dana@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _values: auto-remove argument separator
- Date: Sat, 02 May 2026 16:26:49 -0500
- Archived-at: <https://zsh.org/workers/54454>
- Feedback-id: i9be146f9:Fastmail
- List-id: <zsh-workers.zsh.org>
_values has auto-removal for the sequence separator (,) but not for the
argument one (=). i can't think of why that should be the case, so this
makes it happen for both
(removed the -q because it was superfluous/misleading. compadd -qrR
always have the precedence -R > -r > -q regardless of the order they're
given in)
dana
diff --git a/Completion/Base/Utility/_values b/Completion/Base/Utility/_values
index 5ed79e890..a8a14c73f 100644
--- a/Completion/Base/Utility/_values
+++ b/Completion/Base/Utility/_values
@@ -59,8 +59,8 @@ if compvalues -i "$keep[@]" "$@"; then
_describe "$descr" \
noargs "$sep[@]" -M 'r:|[_-]=* r:|=*' -- \
- args -S "${argsep}" -M 'r:|[_-]=* r:|=*' -- \
- opts -qS "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
+ args -S "${argsep}" -r "${argsep}${sep[2]}" -M 'r:|[_-]=* r:|=*' -- \
+ opts -S "${argsep}" -r "${argsep}${sep[2]} \\t\\n\\-" -M 'r:|[_-]=* r:|=*'
curcontext="$oldcontext"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author