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

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

[elpa] externals/denote 860c5cca22 06/10: Show relative current file nam


From: ELPA Syncer
Subject: [elpa] externals/denote 860c5cca22 06/10: Show relative current file name in rename commands
Date: Tue, 5 Dec 2023 03:58:14 -0500 (EST)

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

    Show relative current file name in rename commands
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 0098eb8d5f..7b95e9aa57 100644
--- a/denote.el
+++ b/denote.el
@@ -2488,7 +2488,7 @@ file-naming scheme."
   (interactive
    (let* ((file (denote--rename-dired-file-or-prompt))
           (file-type (denote-filetype-heuristics file))
-          (file-in-prompt (propertize file 'face 
'denote-faces-prompt-current-name)))
+          (file-in-prompt (propertize (file-relative-name file) 'face 
'denote-faces-prompt-current-name)))
      (list
       file
       (denote-title-prompt
@@ -2535,7 +2535,7 @@ the changes made to the file: perform them outright."
                         (denote--get-all-used-ids))))
         (dolist (file marks)
           (let* ((file-type (denote-filetype-heuristics file))
-                 (file-in-prompt (propertize file 'face 
'denote-faces-prompt-current-name))
+                 (file-in-prompt (propertize (file-relative-name file) 'face 
'denote-faces-prompt-current-name))
                  (dir (file-name-directory file))
                  (id (or (denote-retrieve-filename-identifier file :no-error)
                          (denote-create-unique-file-identifier file used-ids)))



reply via email to

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