(fix): fix org-roam-completions-everywhere (#1145)

Fix org-roam-completion-everywhere still producing fuzzy links
This commit is contained in:
Jethro Kuan
2020-09-27 15:51:26 +08:00
committed by GitHub
parent 2f4034cebc
commit 64d8ba1900

View File

@ -1192,7 +1192,7 @@ This is active when `org-roam-completion-everywhere' is non-nil."
collection #'org-roam--get-titles
exit-fn (lambda (str _status)
(delete-char (- (length str)))
(insert "[[" str "]]")))))
(insert "[[roam:" str "]]")))))
(when collection
(let ((prefix (buffer-substring-no-properties start end)))
(list start end