stitch
Note taking for messy minimalists
git clone git://mccd.space/stitchcommit b6ecaa98c8a07c42f55bb498ebdb8c82873c3b62
parent 1b4ed54a85c31a032fbc841c62f674c3a8f2764b
Author: Marc Coquand <marc@mccd.space>
Date: Fri, 17 May 2024 15:13:18 -0500
Fix escaping
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/main.ml b/bin/main.ml
@@ -91,8 +91,8 @@ let headlines_cmd =
"function capture {\n\
\ JRNL=\"\\$STITCH_DIRECTORY/\\$(date +'%y-%m-%d.%H:%M.%S').org\"\n\
\ echo '* ' > /tmp/capture \n\
- \ $EDITOR /tmp/capture +1\n\
- \ if grep -q '^\\*\\s*\\$' /tmp/capture \n\
+ \ \\$EDITOR /tmp/capture +1\n\
+ \ if grep -q '^\\\\*\\\\s*\\$' /tmp/capture \n\
\ then \n\
\ echo \"Empty capture; ignoring\"\n\
\ else \n\
@@ -124,7 +124,7 @@ let headlines_cmd =
\ JRNL=\"\\$STITCH_DIRECTORY/\\$(date +'%y-%m-%d.%H:%M.%S').org\"\n\
\ echo '* TODO ' > /tmp/capture\n\
\ \\$EDITOR /tmp/capture +1\"\n\
- \ if grep -q '^\\* TODO\\s*\\$' /tmp/capture \n\
+ \ if grep -q '^\\\\* TODO\\\\s*\\$' /tmp/capture \n\
\ then \n\
\ echo \"Empty capture\"\n\
\ else \n\