Skip to content

Commit

Permalink
(fix): fix parsing for ido (#645)
Browse files Browse the repository at this point in the history
This reverts commit 47763f4, after #643
reverted completions from hash-table to alist.
  • Loading branch information
jethrokuan committed May 16, 2020
1 parent 3bc174a commit 4b4ebf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-roam-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Return user choice."
(setq res
(cond
((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)))
((eq org-roam-completion-system 'default)
(completing-read prompt choices nil require-match initial-input))
Expand All @@ -86,7 +86,7 @@ https://github.com/abo-abo/swiper")))
(user-error "Please install helm from \
https://github.com/emacs-helm/helm"))
(let ((source (helm-make-source prompt 'helm-source-sync
:candidates (hash-table-keys choices)
:candidates (mapcar #'car choices)
:filtered-candidate-transformer
(and (not require-match)
#'org-roam-completion--helm-candidate-transformer)))
Expand Down

0 comments on commit 4b4ebf7

Please sign in to comment.