From 1f796d5cb6e1696b9c993f038933d4a70b46b989 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sun, 26 May 2024 19:41:12 -0500 Subject: Bin: update to vis --- local/bin/capture | 2 +- local/bin/log | 2 +- local/bin/todo | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'local/bin') 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" -- cgit v1.2.3