From 5a2b30ba80478eb6523b1673e58427ffe77f5f2d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 21 May 2018 20:14:55 -0300 Subject: Taskwarrior and timewarrior support at todo script --- todo | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'todo') 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 -- cgit v1.2.3