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

org-roam-node-read--to-candidate is a byte-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 ~/.emacs.d/elpa/org-roam-20260224.1637/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)))