'edit' plugin to open files in a text editor.

This commit is contained in:
Matt Brubeck
2009-03-11 11:36:23 -07:00
parent 6bc05000d9
commit 3e9d40ebd7

12
todo.actions.d/edit Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
case $1 in
"usage")
echo "$(basename $0) [BASENAME]"
echo " Open \$TODO_DIR/BASENAME.txt in \$EDITOR."
echo " If BASENAME is not given, defaults to 'todo'."
;;
*)
FILE=${2:-todo}.txt
$EDITOR $TODO_DIR/$FILE
;;
esac