From 4b4ebf76c74dca83aff98bfcfa0900a90b8910b8 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sat, 16 May 2020 19:38:52 +0800 Subject: [PATCH] (fix): fix parsing for ido (#645) This reverts commit 47763f49fde56579658ed8b8ee33a52d38674515, after #643 reverted completions from hash-table to alist. --- org-roam-completion.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-roam-completion.el b/org-roam-completion.el index 1820812..8efa575 100644 --- a/org-roam-completion.el +++ b/org-roam-completion.el @@ -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)) @@ -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)))