aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.org15
1 files changed, 13 insertions, 2 deletions
diff --git a/README.org b/README.org
index 9d767f3..69e4968 100644
--- a/README.org
+++ b/README.org
@@ -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