From d78ac0ab385dcd39a7e17c59bbc929889544a650 Mon Sep 17 00:00:00 2001 From: YargoB Date: Mon, 11 May 2020 20:52:51 +0000 Subject: [PATCH] prepend option flag to allow for "-.." filters --- clikan.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clikan.sh b/clikan.sh index 41e3b96..1ec0b3a 100755 --- a/clikan.sh +++ b/clikan.sh @@ -128,16 +128,16 @@ showall(){ echo echo " $1 // `date`" if test "$filtr" != "." - then echo " /$filtr/" + then echo " ($filtr)" fi if test "$f" = "*" then t=`date +%m-%d` # for "doing", sort filtered cards - grep -i "$filtr" $kbs | getlines "$f" | condsort + grep -i -e $filtr $kbs | getlines "$f" | condsort # and also display '- ...(MM-DD)...' calendar entries cat $kbs | grep "^[*+-] .*($t)" | sed -e 's/^. //' # for waiting and archive, filter but keep saved card order - else grep -i "$filtr" $kbs | getlines "$f" + else grep -i -e $filtr $kbs | getlines "$f" # for all cases, select the cards and show the beginning of the list fi | showselect "$f " | head -n $ms }