(feat)completions: separate completion history (#1901)

* (fix) Use read-from-minibuffer instead of completing-read where appropriate

* (feat) Add separate node and ref completion histories

Using separate histories has the advantage that the history only contains node
names and no other strings from other unrelated minibuffer completions.
This commit is contained in:
Daniel Mendler
2021-10-13 06:47:19 +02:00
committed by GitHub
parent 4af5ff662e
commit f80515ab5f
2 changed files with 10 additions and 4 deletions

View File

@ -741,7 +741,7 @@ also run Org-capture's template expansion."
(funcall node-fn org-roam-capture--node))
((plist-get org-roam-capture--info ksym)
(plist-get org-roam-capture--info ksym))
(t (let ((r (completing-read (format "%s: " key) nil nil nil default-val)))
(t (let ((r (read-from-minibuffer (format "%s: " key) default-val)))
(plist-put org-roam-capture--info ksym r)
r))))))))