Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Add glob qualifier grouping operator to completion
- X-seq: zsh-workers 51980
- From: Atte Peltomäki <koston@xxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Add glob qualifier grouping operator to completion
- Date: Thu, 20 Jul 2023 13:52:08 +0300
- Arc-authentication-results: i=1; ORIGINATING; auth=pass smtp.auth=koston smtp.mailfrom=koston@xxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1689850328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LUTAch7O5cpw/z0sLz1X6hZNzF0elcswu2eT56pjG28=; b=vXvZ2DgCZW+uq13MuePloAouoXlflyxIHGoiq1IahXESNnq4YoqTKpaEK/EEmjmtQMhgpd Jp74q50dYiLTY295ki/UAhdAw+w/ahyhD4mSnxisL4ODQ4YOfdkFTXzP0/Xp+C33OiAUoM FI7Uug2Xid4qZ4eu0FVrQZZCZnir9X7JAE+X+fuF6er6kZ1fUdkFcI0jVEQHp3so12txLW jQNpd+c98gkb8T5heDZZjqQQghbd5QI8XJ+MhiPmzwFY3ApV8vJiqvlm8Otl923KD74Ny8 7LA4WMIgFALKwi8cWL7nPgL8yjUNAFW1YAcnm63kAR2u3goSbPOyJJSPA4Z0nA==
- Arc-seal: i=1; s=lahtoruutu; d=iki.fi; t=1689850328; a=rsa-sha256; cv=none; b=vs/Z8gAyMFMoN3gwyHrGOTByfpECwt8xCa+LNTSdErMoZsnwqyqfdr6A2QTwpd3vJB76vM 6qi+ZWlLbrko3alWggmCpEha6U3SGVmuRKrCle0QHrPi9IT8sIDxo5NVLMQegD3zF0Sr+F eSyS/N3QKwx9hrQMmHJ02T76m7rPAia711KdyfYRT04FMuxvjU7TuzXfnpDO8QuX/bCMz2 V59G1NWqnZeFX9wyk3+Bb74g/YInw7Z94/M+ENipgHoX7eNYjVZ3JAEe7N21k7k3IL3Yio 4zzIrfUMBI16oHgMG/8VxRYxi12bdEp6cjvPsm4MOC+XjAGwMwrQlBVQeIZSEw==
- Archived-at: <https://zsh.org/workers/51980>
- List-id: <zsh-workers.zsh.org>
Also improve wording in documentation to make glob qualifier grouping
easier to find by explicit use of terms 'logical OR' and 'logical AND'.
---
Completion/Zsh/Type/_globquals | 1 +
Doc/Zsh/expn.yo | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Completion/Zsh/Type/_globquals b/Completion/Zsh/Type/_globquals
index bc3165eba..beb47ed30 100644
--- a/Completion/Zsh/Type/_globquals
+++ b/Completion/Zsh/Type/_globquals
@@ -268,6 +268,7 @@ case $state in
"P:prepend word"
"Y:+ at most ARG matches"
"[:+ range of files"
+ ",:logical OR"
"):end of qualifiers"
"\::modifier"
)
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 7bc736470..742a31870 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -3079,9 +3079,10 @@ so both can be used on the same glob expression; for example by writing
)
enditem()
-More than one of these lists can be combined, separated by commas. The
-whole list matches if at least one of the sublists matches (they are
-`or'ed, the qualifiers in the sublists are `and'ed). Some qualifiers,
+Multiple consequtive qualifiers are joined into a list by implicit logical AND.
+More than one of these lists can be combined using comma `tt(,)' as logical OR.
+The whole list matches if at least one of the sublists matches.
+Some qualifiers,
however, affect all matches generated, independent of the sublist in
which they are given. These are the qualifiers `tt(M)', `tt(T)',
`tt(N)', `tt(D)', `tt(n)', `tt(o)', `tt(O)' and the subscripts given
--
Atte Peltomäki
"Your effort to remain what you are is what limits you"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author