diff options
Diffstat (limited to 'todo')
-rwxr-xr-x | todo | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -22,7 +22,12 @@ FOLDERS="`echo $WORKPATH | tr ':' ' ' | sed -e "s|~|$HOME|g"`" # Iterate function todo_find { for folder in $FOLDERS; do - find $folder/ -maxdepth $TODO_MAXDEPTH -xtype f -iname 'todo*' + find $folder/ -maxdepth $TODO_MAXDEPTH -xtype f -iname 'todo*' | while read todo; do + # Ignore lists without tasks + if grep -q -e '*' -e '-' $todo; then + echo $todo + fi + done done } |