(fix): adapt find-ref to new format (#646)

This commit is contained in:
Leo Vivier 2020-05-16 14:03:37 +02:00 committed by GitHub
parent 4b4ebf76c7
commit 265182a698
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -735,7 +735,7 @@ REF should be the value of '#+ROAM_KEY:' without any
type-information (e.g. 'cite:').
Return nil if the file does not exist."
(when-let* ((completions (org-roam--get-ref-path-completions))
(file (cdr (assoc ref completions))))
(file (plist-get (cdr (assoc ref completions)) :path)))
(find-file file)))
(defun org-roam-find-ref (arg &optional filter)