Function: org-roam-ref-add
org-roam-ref-add is an interactive and byte-compiled function defined
in org-roam-node.el.
Signature
(org-roam-ref-add REF)
Documentation
Add REF to the node at point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-node.el
;;;; Editing
(defun org-roam-ref-add (ref)
"Add REF to the node at point."
(interactive `(,(if org-roam-ref-prompt-function
(funcall org-roam-ref-prompt-function)
(read-string "Ref: "))))
(let ((node (org-roam-node-at-point 'assert)))
(save-excursion
(goto-char (org-roam-node-point node))
(org-roam-property-add "ROAM_REFS" (if (member " " (string-to-list ref))
(concat "\"" ref "\"")
ref)))))