summaryrefslogtreecommitdiff
path: root/home/dots/.local/bin/todo
blob: f0a02b88c297c67cefcd4cbd31fe2c1581e426ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

TODO_BASE='* TODO  '
JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org"
echo '* TODO  ' > /tmp/capture
$EDITOR /tmp/capture +1
if grep -q '^\* TODO\s*$' /tmp/capture 
then 
   echo "Empty capture"
else 
   echo "Storing capture in $JRNL"
   cat /tmp/capture > $JRNL
fi