Function: org-roam-dailies--capture

org-roam-dailies--capture is a byte-compiled function defined in org-roam-dailies.el.

Signature

(org-roam-dailies--capture TIME &optional GOTO KEYS)

Documentation

Capture an entry in a daily-note for TIME, creating it if necessary.

When GOTO is non-nil, go the note without creating an entry.

ELisp programs can set KEYS to a string associated with a template. In this case, interactive selection will be bypassed.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-dailies.el
(defun org-roam-dailies--capture (time &optional goto keys)
  "Capture an entry in a daily-note for TIME, creating it if necessary.
When GOTO is non-nil, go the note without creating an entry.

ELisp programs can set KEYS to a string associated with a template.
In this case, interactive selection will be bypassed."
  (let ((org-roam-directory (expand-file-name org-roam-dailies-directory org-roam-directory))
        (org-roam-dailies-directory "./"))
    (org-roam-capture- :goto (when goto '(4))
                       :keys keys
                       :node (org-roam-node-create)
                       :templates org-roam-dailies-capture-templates
                       :props (list :override-default-time time)))
  (when goto (run-hooks 'org-roam-dailies-find-file-hook)))