Function: org-roam-complete-everywhere
org-roam-complete-everywhere is a byte-compiled function defined in
org-roam-node.el.
Signature
(org-roam-complete-everywhere)
Documentation
Complete symbol at point as a link completion to an Org-roam node.
This is a completion-at-point function, and is active when
org-roam-completion-everywhere is non-nil.
Unlike org-roam-complete-link-at-point this will complete even
outside of the bracket syntax for links (i.e. "[[roam:|]]"),
hence "everywhere".
Source Code
;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-node.el
(defun org-roam-complete-everywhere ()
"Complete symbol at point as a link completion to an Org-roam node.
This is a `completion-at-point' function, and is active when
`org-roam-completion-everywhere' is non-nil.
Unlike `org-roam-complete-link-at-point' this will complete even
outside of the bracket syntax for links (i.e. \"[[roam:|]]\"),
hence \"everywhere\"."
(when (and org-roam-completion-everywhere
(thing-at-point 'word)
(not (org-in-src-block-p))
(not (save-match-data (org-in-regexp org-link-any-re))))
(let ((bounds (bounds-of-thing-at-point 'word)))
(list (car bounds) (cdr bounds)
(org-roam--get-titles)
:exit-function
(lambda (str _status)
(delete-char (- (length str)))
(insert "[[roam:" str "]]"))
;; Proceed with the next completion function if the returned titles
;; do not match. This allows the default Org capfs or custom capfs
;; of lower priority to run.
:exclusive 'no))))