mirror of
https://github.com/org-roam/org-roam
synced 2025-09-28 16:50:58 -05:00
(bugfix): force a cache update on making a new file (#107)
This commit is contained in:
@@ -239,7 +239,10 @@ If not provided, derive the title from the file name."
|
|||||||
(error (format "Aborting, file already exists at %s" file-path))
|
(error (format "Aborting, file already exists at %s" file-path))
|
||||||
(if org-roam-autopopulate-title
|
(if org-roam-autopopulate-title
|
||||||
(org-roam--populate-title file-path title)
|
(org-roam--populate-title file-path title)
|
||||||
(make-empty-file file-path))))
|
(make-empty-file file-path))
|
||||||
|
(save-excursion
|
||||||
|
(with-current-buffer (find-file-noselect file-path)
|
||||||
|
(org-roam--update-cache)))))
|
||||||
|
|
||||||
(defun org-roam--new-file-named (slug)
|
(defun org-roam--new-file-named (slug)
|
||||||
"Create a new file named `SLUG'.
|
"Create a new file named `SLUG'.
|
||||||
|
Reference in New Issue
Block a user