diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-21 20:14:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-21 20:14:55 -0300 |
commit | 5a2b30ba80478eb6523b1673e58427ffe77f5f2d (patch) | |
tree | 3d7b8af3fd785d88e9a980101b59aad0a9967253 | |
parent | 0060192bc8d87546061a0256722fd4af230b5455 (diff) | |
download | scripts-5a2b30ba80478eb6523b1673e58427ffe77f5f2d.tar.gz scripts-5a2b30ba80478eb6523b1673e58427ffe77f5f2d.tar.bz2 |
Taskwarrior and timewarrior support at todo script
-rwxr-xr-x | todo | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |