'edit' plugin to open files in a text editor.
This commit is contained in:
12
todo.actions.d/edit
Executable file
12
todo.actions.d/edit
Executable 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
|
||||||
Reference in New Issue
Block a user