aboutsummaryrefslogtreecommitdiff
path: root/todo
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-05 18:45:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-05 18:45:55 -0300
commit3fcde8df5a7315a22922879e671cf0888887327b (patch)
tree252f35e8b50c9f5effe47db0b83c232c1de77ab7 /todo
parenteb6e23577ebd2a7de151fc46bb4c8e9283a6199e (diff)
downloadscripts-3fcde8df5a7315a22922879e671cf0888887327b.tar.gz
scripts-3fcde8df5a7315a22922879e671cf0888887327b.tar.bz2
Enhance todo
Diffstat (limited to 'todo')
-rwxr-xr-xtodo6
1 files changed, 5 insertions, 1 deletions
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]"