From: Silvio Rhatto Date: Mon, 21 May 2018 23:14:55 +0000 (-0300) Subject: Taskwarrior and timewarrior support at todo script X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5a2b30ba80478eb6523b1673e58427ffe77f5f2d;p=scripts.git Taskwarrior and timewarrior support at todo script --- diff --git a/todo b/todo index 568809b..42aaf19 100755 --- a/todo +++ b/todo @@ -38,6 +38,20 @@ function todo_find { function todo_list { local status="$1" + # Taskwarrior + if which task &> /dev/null; then + echo "taskwarrior:" + echo "" + task list 2> /dev/null + echo "" + fi + + # Timewarrior + if which timew &> /dev/null; then + timew | grep -v "^There is no active time tracking." + echo "" + fi + todo_find | while read todo; do if [ "$todo" != "$NAME" ]; then if [ ! -z "$status" ] && ! grep -q "\($status\)" $todo; then