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