about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2021-12-16 14:19:48 +0100
committerOliver Kiddle <opk@zsh.org>2021-12-16 14:21:19 +0100
commit702d773e8657d1f8ea161d65d5dfce238a67c204 (patch)
treed0fe2751e141221f9c87489f943c424a52e4e379 /Completion
parent7cb980b5366afd5b82b3540961ea4a2e68faab8e (diff)
downloadzsh-702d773e8657d1f8ea161d65d5dfce238a67c204.tar.gz
zsh-702d773e8657d1f8ea161d65d5dfce238a67c204.tar.xz
zsh-702d773e8657d1f8ea161d65d5dfce238a67c204.zip
49648 based on github #80 (Vincent Bernat): invert before/since for date glob qualifiers completion
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_find4
-rw-r--r--Completion/Zsh/Type/_globquals8
2 files changed, 5 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_find b/Completion/Unix/Command/_find
index 8ff60baf2..74111f92b 100644
--- a/Completion/Unix/Command/_find
+++ b/Completion/Unix/Command/_find
@@ -156,11 +156,11 @@ if [[ $state = times ]]; then
     if zstyle -t ":completion:${curcontext}:senses" verbose; then
       zstyle -s ":completion:${curcontext}:senses" list-separator sep || sep=--
       default=" [default exactly]"
-      disp=( "- $sep before" "+ $sep since" )
+      disp=( "+ $sep before (older files)" "- $sep since (newer files)" )
       smatch=( - + )
     else
       disp=( before exactly since )
-      smatch=( - '' + )
+      smatch=( + '' - )
     fi
     alts=( "senses:sense${default}:compadd -V times -S '' -d disp -a smatch" )
   fi
diff --git a/Completion/Zsh/Type/_globquals b/Completion/Zsh/Type/_globquals
index 915f97c1c..bc3165eba 100644
--- a/Completion/Zsh/Type/_globquals
+++ b/Completion/Zsh/Type/_globquals
@@ -127,16 +127,14 @@ while [[ -n $PREFIX ]]; do
 	alts+=( "time-specifiers:time specifier:compadd -E 0 -d tdisp -S '' -a tmatch" )
       fi
       if ! compset -P '[-+]' && [[ -z $PREFIX ]]; then
-	sdisp=( before exactly since )
-	smatch=( - '' + )
 	if zstyle -t ":completion:${curcontext}:senses" verbose; then
 	  zstyle -s ":completion:${curcontext}:senses" list-separator sep || sep=--
 	  default=" [default exactly]"
-	  sdisp=( "- $sep before" "+ $sep since" )
-	  smatch=( - + )
+          sdisp=( "+ $sep before (older files)" "- $sep since (newer files)" )
+	  smatch=( + - )
 	else
 	  sdisp=( before exactly since )
-	  smatch=( - '' + )
+	  smatch=( + '' - )
 	fi
         alts+=( "senses:sense${default}:compadd -E 0 -d sdisp -S '' -a smatch" )
       fi