You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org-roam-dailies-insert-date could produce a link to a date using the date selection minibuffer interface.
Long Description
When inserting a timestamp with org-roam-dailies-find-date, a minibuffer interface appears, allowing the user to select a date. A command like org-roam-dailies-insert-date could produce the same minibuffer, but instead produce a link to the specified daily file.
A while back I made a org-roam-dailies-insert-date function to provide allow me to insert a linked reference to a specific "daily" file. I'm not super-familiar with elisp, so I wouldn't be at all surprised if there is a better way to write this, but it's worked well for me.
(defunmatt/org-insert-last-stored-link-without-newline (arg)
"Insert the last link stored in `org-stored-links' like`org-insert-last-stored-link', but without a trailing newline."
(interactive"p")
(org-insert-all-links arg """"))
(defunmatt/org-roam-dailies-insert-date ()
(interactive)
(save-window-excursion (save-excursion
(org-roam-dailies-find-date)
(save-buffer)
(org-store-linknil'not-interactive)
(let* ((id (car (car org-stored-links)))
(description (org-roam--file-keyword-get "TITLE"))
(updated (list id description)))
(setq org-stored-links (cons updated (cdr org-stored-links))))))
(call-interactively'matt/org-insert-last-stored-link-without-newline))
Brief Abstract
org-roam-dailies-insert-date
could produce a link to a date using the date selection minibuffer interface.Long Description
When inserting a timestamp with
org-roam-dailies-find-date
, a minibuffer interface appears, allowing the user to select a date. A command likeorg-roam-dailies-insert-date
could produce the same minibuffer, but instead produce a link to the specified daily file.Proposed Implementation (if any)
Conceptually:
(org-roam-insert (org-roam-dailies-find-date))
?Please check the following:
The text was updated successfully, but these errors were encountered: