From 1b5e55b6c469407e5fa3d463a3d4170c105f18a6 Mon Sep 17 00:00:00 2001 From: N V <44036031+progfolio@users.noreply.github.com> Date: Sun, 17 May 2020 11:36:15 -0400 Subject: [PATCH] (fix): org-roam-capture allow creating new file (#661) Set title correctly when no match found in prompt's candidates. fixes #651 --- org-roam-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index 34e7aee..a6f076a 100644 --- a/org-roam-capture.el +++ b/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))