summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2024-08-31 12:01:33 +0200
committerOliver Kiddle <opk@zsh.org>2024-08-31 12:01:33 +0200
commit6973d1d16f12923d3af5454b24cd1d2a73f4281a (patch)
tree3bb6a4fea9ac263e3023a2c587b152437a47e94d
parent678fb68879e52a7e608dbbb859f98c2f9ff171eb (diff)
downloadzsh-6973d1d16f12923d3af5454b24cd1d2a73f4281a.tar.gz
zsh-6973d1d16f12923d3af5454b24cd1d2a73f4281a.zip
53057: complete glob qualifiers following an equals expansion
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Zsh/Context/_equal10
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a3080ea8f..4d8843b80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2024-08-31 Oliver Kiddle <opk@zsh.org>
+ * 53057: Completion/Zsh/Context/_equal: complete glob qualifiers
+ following an equals expansion
+
* 53052: Completion/X/Command/_setxkbmap: update completion with
newer options
diff --git a/Completion/Zsh/Context/_equal b/Completion/Zsh/Context/_equal
index 58a415d56..5cdeea264 100644
--- a/Completion/Zsh/Context/_equal
+++ b/Completion/Zsh/Context/_equal
@@ -1,3 +1,11 @@
#compdef -equal-
-_path_commands
+local -a match mbegin mend
+
+if _have_glob_qual $PREFIX; then
+ compset -p ${#match[1]}
+ compset -S '[^\)\|\~]#(|\))'
+ _globquals
+else
+ _path_commands
+fi