Browse Source

todolist: Column format

master
Maxim Likhachev 5 years ago
parent
commit
11f9ec0aec
  1. 6
      todolist

6
todolist

@ -5,6 +5,10 @@ @@ -5,6 +5,10 @@
[ -n "$1" ] && cd "$1"
if git rev-parse --show-toplevel &>/dev/null; then
grep -n -R "^[[:space:]]*[#/\"-]*[[:space:]]*TODO:" .
grep -n -R "^[[:space:]]*[#/\";-]*[[:space:]]*TODO:" . \
| expand \
| sed -r 's/([[:digit:]]):/\1:@@ /' \
| tr -s ' ' \
| column -t -s '@@'
fi

Loading…
Cancel
Save