(bugfix): force a cache update on making a new file (#107)

master
Jethro Kuan 6 years ago committed by GitHub
parent 424de1f0cb
commit 659babf922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      org-roam.el

@ -239,7 +239,10 @@ If not provided, derive the title from the file name."
(error (format "Aborting, file already exists at %s" file-path))
(if org-roam-autopopulate-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)
"Create a new file named `SLUG'.

Loading…
Cancel
Save