blob: 50ddae537557875caa0dce250d5a32c3ea9cf8f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org"
echo '* :journal:' > /tmp/capture
$EDITOR /tmp/capture
if grep -q '^\*\s*:journal:' /tmp/capture
then
echo "Empty capture; ignoring"
else
echo "Storing capture in $JRNL"
cat /tmp/capture > $JRNL
fi
|