(fix): move from alist to hash for find-ref (#640)

This commit is contained in:
Leo Vivier
2020-05-16 01:23:36 +02:00
committed by GitHub
parent 47763f49fd
commit d816250614

View File

@@ -736,7 +736,8 @@ included as a candidate."
(ref (org-roam-completion--completing-read "Ref: " (ref (org-roam-completion--completing-read "Ref: "
completions completions
:require-match t)) :require-match t))
(file (cdr (assoc ref completions)))) (file (-> (gethash ref completions)
(plist-get :path))))
(find-file file))) (find-file file)))
(defun org-roam--get-roam-buffers () (defun org-roam--get-roam-buffers ()