first commit
This commit is contained in:
19
.todo.actions.d/adda
Executable file
19
.todo.actions.d/adda
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user