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
|
||||
:point pos
|
||||
:title title)))
|
||||
(cons (propertize ref 'node node 'type type)
|
||||
node)))))
|
||||
(cons
|
||||
(concat (propertize ref 'node node 'type type)
|
||||
(propertize id 'invisible t))
|
||||
node)))))
|
||||
|
||||
(defun org-roam-ref-read--annotation (ref)
|
||||
"Return the annotation for REF, which assumed to be a propertized string."
|
||||
|
Reference in New Issue
Block a user