From: Silvio Rhatto Date: Fri, 14 Oct 2016 02:01:29 +0000 (-0300) Subject: Updates todo interface X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=275e596dece90af72b2d1a91061bff49f1d03ed9;p=scripts.git Updates todo interface --- 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