aboutsummaryrefslogtreecommitdiff
path: root/todo
diff options
context:
space:
mode:
Diffstat (limited to 'todo')
-rwxr-xr-xtodo7
1 files changed, 7 insertions, 0 deletions
diff --git a/todo b/todo
index 1671485..9c62f32 100755
--- a/todo
+++ b/todo
@@ -49,6 +49,13 @@ if [ "$OPTION" == "list" ]; then
todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|"
elif [ "$OPTION" == "count" ]; then
todo_find | grep -v $NAME | wc -l
+elif [ "$OPTION" == "see" ]; then
+ if [ ! -z "$2" ] && [ -e "$2" ]; then
+ grep "TODO" $2 | sed -e 's/^ *//'
+ fi
+elif [ "$OPTION" == "help" ]; then
+ echo "usage: $BASENAME [list|count]"
+ echo " $BASENAME see <file>"
else
todo_list
fi