Function: org-roam-capture--try-capture-to-ref-h
org-roam-capture--try-capture-to-ref-h is a byte-compiled function
defined in org-roam-capture.el.
Signature
(org-roam-capture--try-capture-to-ref-h)
Documentation
Try to capture to an existing node that match the ref.
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-capture.el
(defun org-roam-capture--try-capture-to-ref-h ()
"Try to capture to an existing node that match the ref."
(when-let* ((node (and (plist-get org-roam-capture--info :ref)
(org-roam-node-from-ref
(plist-get org-roam-capture--info :ref)))))
(set-buffer (org-capture-target-buffer (org-roam-node-file node)))
(goto-char (org-roam-node-point node))
(widen)
(org-roam-node-id node)))