diff options
Diffstat (limited to 'blobs/stitch')
-rw-r--r-- | blobs/stitch/0.0.1/stitch | bin | 5272440 -> 6616744 bytes | |||
-rw-r--r-- | blobs/stitch/0.0.1/stitch.1 | 34 |
2 files changed, 25 insertions, 9 deletions
diff --git a/blobs/stitch/0.0.1/stitch b/blobs/stitch/0.0.1/stitch Binary files differindex e7b0080..39c23fa 100644 --- a/blobs/stitch/0.0.1/stitch +++ b/blobs/stitch/0.0.1/stitch 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 |