From 275e596dece90af72b2d1a91061bff49f1d03ed9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 13 Oct 2016 23:01:29 -0300 Subject: Updates todo interface --- todo | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'todo') diff --git a/todo b/todo index 89e0771..9a92d6e 100755 --- a/todo +++ b/todo @@ -32,19 +32,18 @@ function todo_list { path="`echo $todo | sed -e "s|^$HOME|~|"`" delim="===`echo $path | sed -e 's|.|=|g'`" echo "" - echo $delim echo In $path echo $delim echo "" - cat $todo + grep -e '*' -e '-' $todo fi done } if [ "$OPTION" == "list" ]; then - todo_list | less + todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|" elif [ "$OPTION" == "count" ]; then - todo_find | wc -l + todo_find | grep -v $NAME | wc -l else - todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|" + todo_list | less fi -- cgit v1.2.3