mirror of
https://github.com/org-roam/org-roam
synced 2025-09-20 16:10:56 -05:00
(fix)completion: ensure unique ref candidates (#2208)
Add invisible id to candidate strings to ensure each candidate is unique, and completing-read doesn't get confused about which one to open. Fix #2207
This commit is contained in:
@@ -1006,8 +1006,10 @@ The car is the ref, and the cdr is the corresponding node for the ref."
|
|||||||
:file file
|
:file file
|
||||||
:point pos
|
:point pos
|
||||||
:title title)))
|
:title title)))
|
||||||
(cons (propertize ref 'node node 'type type)
|
(cons
|
||||||
node)))))
|
(concat (propertize ref 'node node 'type type)
|
||||||
|
(propertize id 'invisible t))
|
||||||
|
node)))))
|
||||||
|
|
||||||
(defun org-roam-ref-read--annotation (ref)
|
(defun org-roam-ref-read--annotation (ref)
|
||||||
"Return the annotation for REF, which assumed to be a propertized string."
|
"Return the annotation for REF, which assumed to be a propertized string."
|
||||||
|
Reference in New Issue
Block a user