first commit

This commit is contained in:
Gina Trapani
2009-04-05 11:42:16 -07:00
parent 8549eef46b
commit 56dfae0486
2 changed files with 24 additions and 0 deletions

5
.todo.actions.d/README Normal file
View File

@@ -0,0 +1,5 @@
adda (create a symlink to aa for fewer keystrokes)
* Adds a task and prioritizes it A in one shot
addx (symlink ax for fewer keystrokes)
* Adds a task and marks it as complete in one shot

19
.todo.actions.d/addx Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
action=$1
shift
[ "$action" = "usage" ] && {
echo " Customized add:"
echo " addx \"THING I DID +project @context\""
echo " add an item and mark it as done in one step"
echo ""
exit
}
if "$TODO_SH" command add "$@"; then
# figure out the line of what we just added, and prioritize it A
line=`sed -n '$ =' "$TODO_FILE"`
echo "$line"
"$TODO_SH" command do "$line"
fi