diff options
Diffstat (limited to '')
-rwxr-xr-x | libexec/recit-todo | 17 |
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]; }' |