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

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

[elpa] externals/denote 51fa48dcd7 05/10: Add denote-rename-file-date


From: ELPA Syncer
Subject: [elpa] externals/denote 51fa48dcd7 05/10: Add denote-rename-file-date
Date: Mon, 18 Nov 2024 03:57:59 -0500 (EST)

branch: externals/denote
commit 51fa48dcd71e24cc70bd799ccaa74e81c21be3ce
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Add denote-rename-file-date
---
 denote.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/denote.el b/denote.el
index b65d495f69..1a9567cec7 100644
--- a/denote.el
+++ b/denote.el
@@ -3552,6 +3552,16 @@ how a completion User Interface may accept an empty 
input."
   (let ((denote-prompts '(keywords)))
     (call-interactively #'denote-rename-file)))
 
+(defun denote-rename-file-date ()
+  "Convenience command to change the date of a file.
+Like `denote-rename-file', but prompts only for the date.
+
+Modify a date in one go."
+  (declare (interactive-only t))
+  (interactive)
+  (let ((denote-prompts '(date)))
+    (call-interactively #'denote-rename-file)))
+
 (define-obsolete-function-alias 'denote-keywords-add 
'denote-rename-file-keywords "3.0.0")
 (define-obsolete-function-alias 'denote-rename-add-keywords 
'denote-rename-file-keywords "3.0.0")
 (define-obsolete-function-alias 'denote-keywords-remove 
'denote-rename-file-keywords "3.0.0")



reply via email to

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