prepend option flag to allow for "-.." filters

This commit is contained in:
YargoB 2020-05-11 20:52:51 +00:00
parent d8ead6eabf
commit d78ac0ab38
1 changed files with 3 additions and 3 deletions

View File

@ -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
}