mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): org-roam-capture allow creating new file (#661)
Set title correctly when no match found in prompt's candidates. fixes #651
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user