From 8549eef46bc334c564d9891e0c8d74fd17e2fe96 Mon Sep 17 00:00:00 2001 From: Gina Trapani Date: Sun, 5 Apr 2009 11:21:12 -0700 Subject: [PATCH] first commit --- .todo.actions.d/adda | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .todo.actions.d/adda diff --git a/.todo.actions.d/adda b/.todo.actions.d/adda new file mode 100755 index 0000000..d962735 --- /dev/null +++ b/.todo.actions.d/adda @@ -0,0 +1,19 @@ +#!/bin/bash + +action=$1 +shift + +[ "$action" = "usage" ] && { + echo " Customized add:" + echo " adda \"THING I NEED TO DO +project @context\"" + echo " add an item and prioritize it A 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 pri "$line" A +fi