Function: org-roam-ref-add
org-roam-ref-add is an interactive and natively compiled function
defined in org-roam-node.el.
Signature
(org-roam-ref-add REF)
Documentation
Add REF to the node at point.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/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)))))