From 702d773e8657d1f8ea161d65d5dfce238a67c204 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 16 Dec 2021 14:19:48 +0100 Subject: 49648 based on github #80 (Vincent Bernat): invert before/since for date glob qualifiers completion --- Completion/Zsh/Type/_globquals | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Completion/Zsh/Type/_globquals') 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 -- cgit 1.4.1