aboutsummaryrefslogtreecommitdiff
path: root/libexec/recit-todo
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-09-09 02:05:55 +0000
committerJulio Capote <jcapote@gmail.com>2022-09-09 02:05:55 +0000
commitd79f13cbcc3fd07b483a9744e87f3e5f3e5860cc (patch)
treeec5e691976f2610ede9fe9619d83a9c46bb1f800 /libexec/recit-todo
parente5eba08f3d2ad61e2452a02eb4f80f94297e3f68 (diff)
downloadrecit-d79f13cbcc3fd07b483a9744e87f3e5f3e5860cc.tar.gz
working todos
Diffstat (limited to 'libexec/recit-todo')
-rwxr-xr-xlibexec/recit-todo17
1 files changed, 7 insertions, 10 deletions
diff --git a/libexec/recit-todo b/libexec/recit-todo
index 35f3005..cdbb638 100755
--- a/libexec/recit-todo
+++ b/libexec/recit-todo
@@ -36,13 +36,10 @@ if ! [[ "$project" = "" ]]; then
fi
fi
-
-recit-recsel-entries "$expression" | grep '[0-9][0-9][0-9][0-9]-[0-9][0-9]\|TODO'
-
-# recfile=$(recit-file)
-# if [[ "$expression" = "" ]]; then
-# out=$(recsel -t Entry "$recfile" | recfmt -f "$_RECIT_ROOT/share/recit/templates/custom_delim.templ")
-# else
-# out=$(recsel -t Entry "$recfile" -e "$expression" | recfmt -f "$_RECIT_ROOT/share/recit/templates/custom_delim.templ")
-# fi
-# echo -e "$out"
+recfile=$(recit-file)
+if [[ "$expression" = "" ]]; then
+ out=$(recsel -t Entry "$recfile" | recfmt -f "$_RECIT_ROOT/share/recit/templates/custom_delim.templ")
+else
+ out=$(recsel -t Entry "$recfile" -e "$expression" | recfmt -f "$_RECIT_ROOT/share/recit/templates/custom_delim.templ")
+fi
+echo -e "$out" | grep TODO | awk '{ split($0,a,"@@@"); printf "%s (%s)\n%s\n\n", a[1],a[2],a[3]; }'