From 71f755ac791cc2aaf764d1eada0d85a037c0faa3 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Fri, 17 May 2024 16:44:32 -0500 Subject: update binaries --- .gitattributes | 1 + blobs/stitch/0.0.1/stitch | Bin 5272440 -> 6616744 bytes blobs/stitch/0.0.1/stitch.1 | 34 +++++++++++++++++++++++++--------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6105854 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +stitch diff --git a/blobs/stitch/0.0.1/stitch b/blobs/stitch/0.0.1/stitch index e7b0080..39c23fa 100644 Binary files a/blobs/stitch/0.0.1/stitch and b/blobs/stitch/0.0.1/stitch differ diff --git a/blobs/stitch/0.0.1/stitch.1 b/blobs/stitch/0.0.1/stitch.1 index 4351d5d..38fece8 100644 --- a/blobs/stitch/0.0.1/stitch.1 +++ b/blobs/stitch/0.0.1/stitch.1 @@ -1,7 +1,7 @@ .\" Pipe this output to groff -m man -K utf8 -T utf8 | less -R .\" .mso an.tmac -.TH "STITCH" 1 "" "Stitch 0.1 ALPHA" "Stitch Manual" +.TH "STITCH" 1 "" "Stitch 0.0.1 ALPHA" "Stitch Manual" .\" Disable hyphenation and ragged-right .nh .ad l @@ -92,17 +92,25 @@ To get started, start by setting up a note directory in your shell profile export STITCH_DIRECTORY=/home/bob/notes .fi .P -Stitch does not specify anything on how to capture your notes, but you can add the following in your profile to have a basic note capture command +Stitch does not specify anything on how to capture your notes, but you can add the following in your profile to have a basic note capturing system\N'46' .P .nf function capture { - NEW_NOTE="$STITCH_DIRECTORY/$(date +\N'39'%y\N'45'%m\N'45'%d\N'46'%H:%M\N'46'%S\N'39')\N'46'org" - echo \N'39'* \N'39' >> $NEW_NOTE - $EDITOR "$NEW_NOTE" +1:3 " + JRNL="$STITCH_DIRECTORY/$(date +\N'39'%y\N'45'%m\N'45'%d\N'46'%H:%M\N'46'%S\N'39')\N'46'org" + echo \N'39'* \N'39' > /tmp/capture + $EDITOR /tmp/capture +1 + if grep \N'45'q \N'39'^\N'92'*\N'92's*$\N'39' /tmp/capture + then + echo "Empty capture; ignoring" + else + echo "Storing capture in $JRNL" + cat /tmp/capture > $JRNL + fi } - .fi .P +Now you can run capture in your terminal and it will prompt you to write your note and store it in your notes with a timestamp\N'46' +.P With that, you can begin to capture your notes and they will be displayed in reverse chronological order in stitch\N'46' You can add tags, for example :journal: and :work:\N'46' .P Once added, you can start viewing your notes in Stitch\N'46' So if you added a few journal notes, you can view them with @@ -119,9 +127,17 @@ To set up TODO capturing, you can add a command to your shell profile to capture .P .nf function todo { - NEW_NOTE="$STITCH_DIRECTORY/$(date +\N'39'%y\N'45'%m\N'45'%d\N'46'%H:%M\N'46'%S\N'39')\N'46'org" - echo \N'39'* TODO \N'39' >> $NEW_NOTE - $EDITOR "$NEW_NOTE" +1 + TODO_BASE=\N'39'* TODO \N'39' + JRNL="$STITCH_DIRECTORY/$(date +\N'39'%y\N'45'%m\N'45'%d\N'46'%H:%M\N'46'%S\N'39')\N'46'org" + echo \N'39'* TODO \N'39' > /tmp/capture + $EDITOR /tmp/capture +1" + if grep \N'45'q \N'39'^\N'92'* TODO\N'92's*$\N'39' /tmp/capture + then + echo "Empty capture" + else + echo "Storing capture in $JRNL" + cat /tmp/capture > $JRNL + fi } .fi .P -- cgit v1.2.3