diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-15 15:55:00 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-15 15:55:00 -0500 |
commit | 664a8d8419f0376652709c71ff7e1e6fff5493f6 (patch) | |
tree | 4ce5d6da3cedb69a31bfb93ae9fa21329eeadd57 | |
parent | ebb302498593f15330affa732c5206e31d882d8f (diff) | |
download | stitch-664a8d8419f0376652709c71ff7e1e6fff5493f6.tar.gz stitch-664a8d8419f0376652709c71ff7e1e6fff5493f6.tar.bz2 stitch-664a8d8419f0376652709c71ff7e1e6fff5493f6.zip |
Update README example
-rw-r--r-- | README.org | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -65,8 +65,19 @@ You can build a basic capture command using $EDITOR and date command: #+begin_src export STITCH_DIRECTORY=/home/me/notes - -alias capture="JRNL=\"$STITCH_DIRECTORY/$(date +'%Y-%m-%d %H:%M').org\" echo '* :journal:' > "$STITCH_DIRECTORY && $EDITOR $JRNL" +function capture { + JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org" + echo '* :journal:' >> $JRNL + $EDITOR "$JRNL" +1:3 +} + +function todo { + JRNL="$STITCH_DIRECTORY/$(date +'%y-%m-%d.%H:%M.%S').org" + echo '* TODO ' >> $JRNL + kak "$JRNL" +1:8 -e "execute-keys i" +} + +alias jrnl='stitch -t :journal:' #+end_src and then you can find your journal entries, automatically sorted by |