branch: externals/denote commit 9a57c98d6e9788a34fcfaf69c2c8ffba4a97abc5 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Mention check for duplicate IDs in denote-rename-file docs --- README.org | 6 ++++++ denote.el | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.org b/README.org index 48d632df9b..b8f5a7e510 100644 --- a/README.org +++ b/README.org @@ -996,6 +996,12 @@ identifier based on the following conditions: - As a fallback, derive an identifier from the current time. +- If the resulting identifier is not unique among the files in the + variable `denote-directory', increment it such that it becomes + unique. + +[ The check for duplicate identifiers is part of {{{development-version}}}. ] + The default =TITLE= is retrieved from a line starting with a title field in the file's contents, depending on the given file type ([[#h:13218826-56a5-482a-9b91-5b6de4f14261][Front matter]]). Else, the file name is used as a default value at the minibuffer prompt. diff --git a/denote.el b/denote.el index e37eed8f87..440243a21f 100644 --- a/denote.el +++ b/denote.el @@ -2265,6 +2265,10 @@ create an identifier based on the following conditions: - As a fallback, derive an identifier from the current time. +- If the resulting identifier is not unique among the files in + the variable `denote-directory', increment it such that it + becomes unique. + The default TITLE is retrieved from a line starting with a title field in the file's contents, depending on the given file type (e.g. #+title for Org). Else, the file name is used as a