emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 991b2fece2 2/3: Make denote-rename-buffer-format


From: ELPA Syncer
Subject: [elpa] externals/denote 991b2fece2 2/3: Make denote-rename-buffer-format accept %T for file name title only
Date: Wed, 6 Nov 2024 03:57:44 -0500 (EST)

branch: externals/denote
commit 991b2fece2caf8f01fe459339145387d1b3f1f69
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make denote-rename-buffer-format accept %T for file name title only
---
 README.org              | 3 ++-
 denote-rename-buffer.el | 4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index afa7987a48..2baec7e48f 100644
--- a/README.org
+++ b/README.org
@@ -3538,7 +3538,8 @@ The value of this user option is a string. The following 
specifiers
 are placeholders for Denote file name components 
([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming scheme]]):
 
 #+vindex: denote-rename-buffer-backlinks-indicator
-- The =%t= is the Denote =TITLE= of the file.
+- The =%t= is the Denote =TITLE= in the front matter or the file name.
+- The =%T= is the Denote =TITLE= in the file name. [ The =%T= is part of 
{{{development-version}}}. ]
 - The =%i= is the Denote =IDENTIFIER= of the file.
 - The =%d= is the same as =%i= (=DATE= mnemonic).
 - The =%s= is the Denote =SIGNATURE= of the file.
diff --git a/denote-rename-buffer.el b/denote-rename-buffer.el
index 54ef3b0023..0f68bda506 100644
--- a/denote-rename-buffer.el
+++ b/denote-rename-buffer.el
@@ -52,7 +52,8 @@
 The value is a string that treats specially the following
 specifiers:
 
-- The %t is the Denote TITLE of the file.
+- The %t is the Denote TITLE in the front matter or the file name.
+- The %T is the Denote TITLE in the file name.
 - The %i is the Denote IDENTIFIER of the file.
 - The %d is the same as %i (DATE mnemonic).
 - The %s is the Denote SIGNATURE of the file.
@@ -110,6 +111,7 @@ buffer will be used, if available."
                                     ((denote-retrieve-front-matter-title-value 
file type))
                                     ((denote-retrieve-filename-title file))
                                     (t  "")))
+                          (cons ?T (or (denote-retrieve-filename-title file) 
""))
                           (cons ?b (if should-show-backlink-indicator 
denote-rename-buffer-backlinks-indicator ""))
                           (cons ?i (or (denote-retrieve-filename-identifier 
file) ""))
                           (cons ?d (or (denote-retrieve-filename-identifier 
file) ""))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]