Added a todo.txt plugin that reintroduces functionality they removed, stopgap presently.

This commit is contained in:
Orien Vandenbergh 2015-10-22 15:33:13 -06:00
parent 56142bd512
commit b1ba3a254c

17
todo.actions.d/done.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
action=$1
shift
[ "$action" = "usage" ] && {
echo " done:"
echo " done \"THING THAT WAS ALREADY COMPLETED\""
echo " add an item and mark it as done in one step"
echo ""
exit
}
if "$TODO_SH" command add "$@"; then
line=`wc -l "$TODO_FILE" | cut -d' ' -f1`
"$TODO_SH" command do "$line"
fi