mirror of
https://github.com/org-roam/org-roam
synced 2025-09-06 15:13:30 -05:00
org-roam-insert creates the empty file
This commit is contained in:
@@ -108,6 +108,8 @@ Valid states are 'visible, 'exists and 'none."
|
|||||||
(mapcar #'org-roam--get-id
|
(mapcar #'org-roam--get-id
|
||||||
(org-roam--find-all-files)))))
|
(org-roam--find-all-files)))))
|
||||||
(let ((file-path (org-roam--get-file-path id)))
|
(let ((file-path (org-roam--get-file-path id)))
|
||||||
|
(unless (file-exists-p file-path)
|
||||||
|
(make-empty-file file-path))
|
||||||
(insert (format "[[%s][%s]]"
|
(insert (format "[[%s][%s]]"
|
||||||
(concat "file:" file-path)
|
(concat "file:" file-path)
|
||||||
(concat org-roam-zettel-indicator id)))))
|
(concat org-roam-zettel-indicator id)))))
|
||||||
|
Reference in New Issue
Block a user