From 30a8149475aa5445837966ee7198f4245ad5c00c Mon Sep 17 00:00:00 2001 From: YargoA2 Date: Thu, 22 Jun 2017 08:38:12 +0200 Subject: [PATCH] add display of "- XX (MM-DD) " calendar entries for today in doing view --- clikan.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/clikan.sh b/clikan.sh index 4957f25..35a5a1d 100755 --- a/clikan.sh +++ b/clikan.sh @@ -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