From 3e9d40ebd71cba61f3217a86333ae2412eeadea6 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 11 Mar 2009 11:36:23 -0700 Subject: [PATCH] 'edit' plugin to open files in a text editor. --- todo.actions.d/edit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 todo.actions.d/edit diff --git a/todo.actions.d/edit b/todo.actions.d/edit new file mode 100755 index 0000000..f13ba19 --- /dev/null +++ b/todo.actions.d/edit @@ -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