mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): fix parsing for ido (#645)
This reverts commit 47763f49fd
, after #643
reverted completions from hash-table to alist.
This commit is contained in:
@ -66,7 +66,7 @@ Return user choice."
|
|||||||
(setq res
|
(setq res
|
||||||
(cond
|
(cond
|
||||||
((eq org-roam-completion-system 'ido)
|
((eq org-roam-completion-system 'ido)
|
||||||
(let ((candidates (hash-table-keys choices)))
|
(let ((candidates (mapcar #'car choices)))
|
||||||
(ido-completing-read prompt candidates nil require-match initial-input)))
|
(ido-completing-read prompt candidates nil require-match initial-input)))
|
||||||
((eq org-roam-completion-system 'default)
|
((eq org-roam-completion-system 'default)
|
||||||
(completing-read prompt choices nil require-match initial-input))
|
(completing-read prompt choices nil require-match initial-input))
|
||||||
@ -86,7 +86,7 @@ https://github.com/abo-abo/swiper")))
|
|||||||
(user-error "Please install helm from \
|
(user-error "Please install helm from \
|
||||||
https://github.com/emacs-helm/helm"))
|
https://github.com/emacs-helm/helm"))
|
||||||
(let ((source (helm-make-source prompt 'helm-source-sync
|
(let ((source (helm-make-source prompt 'helm-source-sync
|
||||||
:candidates (hash-table-keys choices)
|
:candidates (mapcar #'car choices)
|
||||||
:filtered-candidate-transformer
|
:filtered-candidate-transformer
|
||||||
(and (not require-match)
|
(and (not require-match)
|
||||||
#'org-roam-completion--helm-candidate-transformer)))
|
#'org-roam-completion--helm-candidate-transformer)))
|
||||||
|
Reference in New Issue
Block a user