aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-21 20:14:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-21 20:14:55 -0300
commit5a2b30ba80478eb6523b1673e58427ffe77f5f2d (patch)
tree3d7b8af3fd785d88e9a980101b59aad0a9967253
parent0060192bc8d87546061a0256722fd4af230b5455 (diff)
downloadscripts-5a2b30ba80478eb6523b1673e58427ffe77f5f2d.tar.gz
scripts-5a2b30ba80478eb6523b1673e58427ffe77f5f2d.tar.bz2
Taskwarrior and timewarrior support at todo script
-rwxr-xr-xtodo14
1 files changed, 14 insertions, 0 deletions
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