From 11f9ec0aecd6fb11757d17ce048c3db71152659e Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Fri, 17 Jul 2020 12:20:06 +0300 Subject: [PATCH] todolist: Column format --- todolist | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/todolist b/todolist index 33a32bb..4956e6e 100755 --- a/todolist +++ b/todolist @@ -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