(fix): org-roam-capture append to existing file (#767)

org-roam-capture was querying plist for :file-path
instead of :path.

See: #766
This commit is contained in:
N V
2020-06-07 01:29:26 -04:00
committed by GitHub
parent 81e7a5b231
commit 14f83bdb07

View File

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