add display of "- XX (MM-DD) " calendar entries for today in doing view

This commit is contained in:
YargoA2 2017-06-22 08:38:12 +02:00
parent a7d7d6c587
commit 30a8149475
1 changed files with 8 additions and 2 deletions

View File

@ -98,7 +98,7 @@ showprompt(){
# display all 'something' cards
showall(){
local f
local f t
case $1 in
d*) f='*' ;;
w*) f='-' ;;
@ -107,7 +107,13 @@ showall(){
esac
echo
echo " $1"
cat $kbs | getlines "$f" | showselect "$f " | head -n $maxshow
{ cat $kbs | getlines "$f"
if test "$f" = "*"
# for doing, also display '- NN (MM-DD) ' calendar entries
then t=`date +%m-%d`
cat $kbs | grep "^[*+-] .. ($t) " | sed -e 's/^. //'
fi
} | showselect "$f " | head -n $maxshow
}
# replace lines (in any kanban) containing some ed pattern