Function: org-roam-node-read--to-candidate

org-roam-node-read--to-candidate is a natively compiled function defined in org-roam-node.el.

Signature

(org-roam-node-read--to-candidate NODE TEMPLATE)

Documentation

Return a minibuffer completion candidate given NODE.

TEMPLATE is the processed template used to format the entry.

Source Code

;; Defined in /nix/store/60hpqw2cczhjli65ml5v1p4g0q2kbyhb-emacs-packages-deps/share/emacs/site-lisp/elpa/org-roam-20260425.1623/org-roam-node.el
(defun org-roam-node-read--to-candidate (node template)
  "Return a minibuffer completion candidate given NODE.
TEMPLATE is the processed template used to format the entry."
  (let ((candidate-main (org-roam-node--format-entry
                         template
                         node
                         (1- (if (bufferp (current-buffer))
                                 (window-width) (frame-width))))))
    (cons (propertize candidate-main 'node node) node)))