From 3fcde8df5a7315a22922879e671cf0888887327b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 5 Sep 2017 18:45:55 -0300 Subject: Enhance todo --- todo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'todo') diff --git a/todo b/todo index f8bd9a3..bc49459 100755 --- a/todo +++ b/todo @@ -51,7 +51,11 @@ elif [ "$OPTION" == "count" ]; then todo_find | grep -v $NAME | wc -l elif [ "$OPTION" == "show" ]; then if [ ! -z "$2" ] && [ -e "$2" ]; then - grep "TODO" $2 | sed -e 's/^ *//' + # Check TODO inside files + grep -i "todo" $2 | sed -e 's/^ *//' + + # Check also for FIXMEs + fixmes $2 fi elif [ "$OPTION" == "help" ]; then echo "usage: $BASENAME [list|count]" -- cgit v1.2.3