todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|"
elif [ "$OPTION" == "count" ]; then
todo_find | grep -v $NAME | wc -l
-elif [ "$OPTION" == "show" ]; then
+elif [ "$OPTION" == "show" ] || [ "$OPTION" == "see" ] || [ "$OPTION" == "view" ]; then
if [ ! -z "$2" ] && [ -e "$2" ]; then
# Check TODO inside files
grep -i "todo" $2 | sed -e 's/^ *//'
# Check also for FIXMEs
fixmes $2
+ elif cd $2 &> /dev/null; then
+ (
+ cd $2 &> /dev/null
+ find -maxdepth 1 -xtype f -iname 'todo*' -exec cat {} \; | grep -e '*' -e '-'
+ )
fi
elif [ "$OPTION" == "list" ]; then
todo_list $2
elif [ "$OPTION" == "help" ]; then
echo "usage: $BASENAME [list|count]"
- echo " $BASENAME show <file>"
+ echo " $BASENAME <show|see|view> <file|project>"
else
todo_list
fi