diff options
Diffstat (limited to 'local/bin')
-rwxr-xr-x | local/bin/capture | 2 | ||||
-rwxr-xr-x | local/bin/log | 2 | ||||
-rwxr-xr-x | local/bin/todo | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/local/bin/capture b/local/bin/capture index f8824cd..c4cd844 100755 --- a/local/bin/capture +++ b/local/bin/capture @@ -5,7 +5,7 @@ CAPTURE_FILE="/tmp/capture-$DATE" echo $DATE JRNL="$STITCH_DIRECTORY/$DATE.org" echo '* ' > $CAPTURE_FILE -kak $CAPTURE_FILE +1:3 -e "execute-keys i" +$EDITOR $CAPTURE_FILE +1 if grep -q '^\*\s*$' $CAPTURE_FILE then echo "Empty capture; ignoring" diff --git a/local/bin/log b/local/bin/log index f46893c..50ddae5 100755 --- a/local/bin/log +++ b/local/bin/log @@ -2,7 +2,7 @@ JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org" echo '* :journal:' > /tmp/capture -kak /tmp/capture +1:3 -e "execute-keys i" +$EDITOR /tmp/capture if grep -q '^\*\s*:journal:' /tmp/capture then echo "Empty capture; ignoring" diff --git a/local/bin/todo b/local/bin/todo index 58299cd..247fc58 100755 --- a/local/bin/todo +++ b/local/bin/todo @@ -3,7 +3,7 @@ TODO_BASE='* TODO ' JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org" echo '* TODO ' > /tmp/capture -kak /tmp/capture +1:8 -e "execute-keys i" +$EDITOR /tmp/capture +1 if grep -q '^\* TODO\s*$' /tmp/capture then echo "Empty capture" |