diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-26 19:41:12 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-26 19:41:12 -0500 |
commit | 1f796d5cb6e1696b9c993f038933d4a70b46b989 (patch) | |
tree | c01960256c877f3b42d0083b143c2f1c467acf8d /local/bin | |
parent | 42371f6275502f0244ccfd5be1a8efc88095c87c (diff) | |
download | rcm-1f796d5cb6e1696b9c993f038933d4a70b46b989.tar.gz rcm-1f796d5cb6e1696b9c993f038933d4a70b46b989.tar.bz2 rcm-1f796d5cb6e1696b9c993f038933d4a70b46b989.zip |
Bin: update to vis
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" |