5 ms·
> It was too much hassle to add new entries (I'm lazy), so now I have a utility that inserts journal entries in the correct place from the command line Wouldn'
by juki 4y ago
> It was too much hassle to add new entries (I'm lazy), so now I have a utility that inserts journal entries in the correct place from the command line
Wouldn't it be easier to just use org-mode's capture functionality (https://orgmode.org/manual/Capture.html https://orgmode.org/manual/Capture.html)? I.e.
(setq org-capture-templates
'(("j" "Journal" (file+olp+datetree "~/journal.org") "* %?")) ;Add more templates as needed
(global-set-key (kbd "C-c c") #'org-capture)
Then `C-c c j` will prompt for a new entry, `C-c C-c` to save it. The `file+olp+datetree` will automatically put them in a year/month/day hierarchy.