(fix): org-roam-capture allow creating new file (#661)

Set title correctly when no match found in prompt's candidates.
fixes #651
master
N V 6 years ago committed by GitHub
parent 4b45f1dbf5
commit 1b5e55b6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      org-roam-capture.el

@ -334,7 +334,7 @@ This uses the templates defined at `org-roam-capture-templates'."
(title-with-keys (org-roam-completion--completing-read "File: "
completions))
(res (cdr (assoc title-with-keys completions)))
(title (plist-get res :title))
(title (or (plist-get res :title) title-with-keys))
(file-path (plist-get res :file-path)))
(let ((org-roam-capture--info (list (cons 'title title)
(cons 'slug (org-roam--title-to-slug title))

Loading…
Cancel
Save