prepend option flag to allow for "-.." filters
This commit is contained in:
parent
d8ead6eabf
commit
d78ac0ab38
|
@ -128,16 +128,16 @@ showall(){
|
||||||
echo
|
echo
|
||||||
echo " $1 // `date`"
|
echo " $1 // `date`"
|
||||||
if test "$filtr" != "."
|
if test "$filtr" != "."
|
||||||
then echo " /$filtr/"
|
then echo " ($filtr)"
|
||||||
fi
|
fi
|
||||||
if test "$f" = "*"
|
if test "$f" = "*"
|
||||||
then t=`date +%m-%d`
|
then t=`date +%m-%d`
|
||||||
# for "doing", sort filtered cards
|
# 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
|
# and also display '- ...(MM-DD)...' calendar entries
|
||||||
cat $kbs | grep "^[*+-] .*($t)" | sed -e 's/^. //'
|
cat $kbs | grep "^[*+-] .*($t)" | sed -e 's/^. //'
|
||||||
# for waiting and archive, filter but keep saved card order
|
# 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
|
# for all cases, select the cards and show the beginning of the list
|
||||||
fi | showselect "$f " | head -n $ms
|
fi | showselect "$f " | head -n $ms
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue