propertize candidates with 'node

This commit is contained in:
Jethro Kuan
2021-04-17 14:21:29 +08:00
parent aa2b670cd7
commit f43b24a5bf

View File

@ -603,9 +603,10 @@ is the `org-roam-node'."
:tags (gethash id tags-table)))
(candidate-main (org-roam-node--format-entry node (1- (frame-width))))
(tag-str (org-roam--tags-to-str (org-roam-node-tags node))))
(cons (concat (propertize tag-str 'invisible t)
candidate-main
(propertize alias 'invisible t))
(cons (propertize (concat (propertize tag-str 'invisible t)
candidate-main
(propertize alias 'invisible t))
'node node)
node)))))
(defcustom org-roam-node-annotation-function #'org-roam-node--annotation