branch: externals/denote commit 7ce1f978444fc066bc4eaf5e15fff79b6480d54a Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add denote-rename-file-using-front-matter y-or-n --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index d2c6f37df0..adb3489475 100644 --- a/denote.el +++ b/denote.el @@ -1385,7 +1385,7 @@ The identifier of the file (if any) is never modified." (dir (file-name-directory file)) (new-name (denote--format-file dir id keywords (denote--sluggify title) extension))) - (progn + (when (denote--rename-file-prompt file new-name) (denote--rename-file file new-name) (denote-update-dired-buffers)) (user-error "No front matter for title and/or keywords")))