prepend option flag to allow for "-.." filters
This commit is contained in:
parent
d8ead6eabf
commit
d78ac0ab38
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue