Following on from yesterday’s experiment of offloading thoughts into Tot I’ve been trying to do the same with Org-roam.
I’ve created a little bit of elisp and added it to my .doom.d/config.el
:
(defun my-add-to-org-roam-daily-today (text)
"Add TEXT to the Org roam today daily as an item at the end."
(save-window-excursion
(org-roam-dailies-goto-today)
(goto-char (point-max))
(org-insert-heading)
(insert text)
(save-buffer)))
This creates a new command in Emacs for adding some text as an item to the end of today’s Org-roam daily.
The Alfred workflow calls the Emacs command via emacsclient (so Emacs will need to be running):
It isn’t very forgiving of single/double quotes (and may get confused by other characters potentially), however for my purposes of quickly adding a concise thought to my daily log it does the job.