branch: externals/denote commit 1079beb8587734e123823b82349f1a64d160eada Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add todo about file deletion post org-capture --- denote.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/denote.el b/denote.el index 9af671949a..40932af173 100644 --- a/denote.el +++ b/denote.el @@ -326,6 +326,9 @@ sample template. We will eventually have a manual." (denote--path title keywords) (denote--prepare-note denote-last-title denote-last-keywords denote-last-path) (denote--keywords-add-to-history denote-last-keywords) + ;; TODO 2022-06-05: Is there a better way to set up this hook? + ;; Alternatively, can we prevent the creation of a file when the + ;; capture is aborted? (add-hook 'org-capture-after-finalize-hook #'denote-org-capture-delete-empty-file) (concat denote-last-front-matter denote-org-capture-specifiers)))