]> gitweb.fluxo.info Git - scripts.git/commitdiff
Enhance todo
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Sep 2017 21:45:55 +0000 (18:45 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Sep 2017 21:45:55 +0000 (18:45 -0300)
todo

diff --git a/todo b/todo
index f8bd9a316053914be02636c6b7d0c7f975bf4047..bc49459bc92ede98ca43b1c845234cb9703b0b25 100755 (executable)
--- 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]"