[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 77eafb2dfe 25/33: Start updating the manual for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 77eafb2dfe 25/33: Start updating the manual for denote-rename-file (WORK-IN-PROGRESS) |
Date: |
Wed, 14 Feb 2024 06:57:48 -0500 (EST) |
branch: externals/denote
commit 77eafb2dfe3402d0d6ad258593d3fe50cfe01834
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Start updating the manual for denote-rename-file (WORK-IN-PROGRESS)
---
README.org | 45 ++++++++++++++++++++++++++++++---------------
1 file changed, 30 insertions(+), 15 deletions(-)
diff --git a/README.org b/README.org
index 8ae3353d7a..f1b6e9c064 100644
--- a/README.org
+++ b/README.org
@@ -1127,32 +1127,47 @@ line or switching between then with commands like
~switch-to-buffer~.
:CUSTOM_ID: h:7cc9e000-806a-48da-945c-711bbc7426b0
:END:
+[ Revised as part of {{{development-version}}} to honour the value of
+ the user option ~denote-prompts~ where that makes sense
([[#h:f9204f1f-fcee-49b1-8081-16a08a338099][The ~denote-prompts~ option]]). ]
+
#+findex: denote-rename-file
The ~denote-rename-file~ command renames a file and updates existing
front matter if appropriate. It is possible to do the same with
multiple files ([[#h:1b6b2c78-42f0-45b8-9ef0-6de21a8b2cde][Rename multiple
files interactively]]).
-If in Dired, consider =FILE= to be the one at point, else prompt with
-minibuffer completion for one. When called from Lisp, =FILE= is a
-filesystem path represented as a string.
+It always renames the file where it is located in the file system:
+it never moves it to another directory.
+
+If in Dired, it considers =FILE= to be the one at point, else it
+prompts with minibuffer completion for one. When called from Lisp,
+=FILE= is a file system path represented as a string.
+
+If =FILE= has a Denote-compliant identifier, it retains it while
+updating components of the file name referenced by the user option
+~denote-prompts~ ([[#h:f9204f1f-fcee-49b1-8081-16a08a338099][The
~denote-prompts~ option]]). By default, these are
+the =TITLE= and =KEYWORDS=. The =SIGNATURE= is another one. When
+called from Lisp, =TITLE= and =SIGNATURE= are strings, while
+=KEYWORDS= is a list of strings.
-If =FILE= has a Denote-compliant identifier, retain it while updating
-the =TITLE=, =KEYWORDS=, and =SIGNATURE= components of the file name.
+If there is no identifier, ~denote-rename-file~ creates an identifier
+based on the following conditions:
-Else create an identifier based on the following conditions:
+1. If the ~denote-prompts~ includes an entry for date prompts, then it
+ prompts for =DATE= and takes its input to produce a new identifier. For
+ use in Lisp, =DATE= must conform with ~denote-valid-date-p~.
-1. If optional =ASK-DATE= is non-nil (such as with a prefix argument),
- prompt for a date and use it to derive the identifier.
+2. If =DATE= is nil (e.g. when ~denote-prompts~ does not include a
+ date entry), it uses the file attributes to determine the last
+ modified date of =FILE= and formats it as an identifier.
-2. If optional =ASK-DATE= is nil (this is the case without a prefix
- argument), use the file attributes to determine the last modified
- date and format it as an identifier.
+3. As a fallback, it derives an identifier from the current date and
+ time.
-3. As a fallback, derive an identifier from the current time.
+4. At any rate, if the resulting identifier is not unique among the
+ files in the variable ~denote-directory~, it increments it such
+ that it becomes unique.
-4. If the resulting identifier is not unique among the files in the
- variable ~denote-directory~, increment it such that it becomes
- unique.
+----- 2024-02-13 10:33 +0200 WORK-IN-PROGRESS.
Add =TITLE= to =FILE=. In interactive use, prompt for user input and
retrieve the default =TITLE= value from a line starting with a title
- [elpa] externals/denote e9e9c8ef2b 07/33: Tweak the behaviour of denote-create-unique-file-identifier, (continued)
- [elpa] externals/denote e9e9c8ef2b 07/33: Tweak the behaviour of denote-create-unique-file-identifier, ELPA Syncer, 2024/02/14
- [elpa] externals/denote b02bf9d7c2 09/33: Add TODO about possible tweak to denote-rename-file, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 764125525e 12/33: Broaden the scope of denote-rename-no-confirm to save buffers as well, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 357c363242 17/33: Clarify that absent denote-prompts mean nil for relevant denote-rename-file arguments, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ce9e2dd1bf 13/33: Complete the documentation of denote-rename-file, noting all modalities of interaction, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ab20f4b0af 15/33: Make denote-dired-rename-files honour the denote-prompts (same as denote-rename-file), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 37508c99d4 16/33: Update the documentation of denote-dired-rename-marked-files, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 4cce51a092 22/33: Change how denote-rename-file passes DATE to denote-create-unique-file-identifier (per e9e9c8e), ELPA Syncer, 2024/02/14
- [elpa] externals/denote c5f8ef1d8a 23/33: Add TODO about possible tweak to denote-rename-file, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 8faf120dff 26/33: Broaden the scope of denote-rename-no-confirm to save buffers as well, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 77eafb2dfe 25/33: Start updating the manual for denote-rename-file (WORK-IN-PROGRESS),
ELPA Syncer <=
- [elpa] externals/denote adf8c6fdc8 02/33: Update denote-create-* commands to respect `denote-prompts`, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ad13d32348 31/33: Clarify that absent denote-prompts mean nil for relevant denote-rename-file arguments, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 1cdb49e227 32/33: Merge branch 'rename-honours-denote-prompts' of github.com:protesilaos/denote into rename-honours-denote-prompts, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ab04f5b774 04/33: Fix typo in variable name in documentation, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 60cf6b6125 05/33: Acknowledge maxbrieiev for commit 7d18b7b, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 16b48265e2 08/33: Change how denote-rename-file passes DATE to denote-create-unique-file-identifier (per e9e9c8e), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 5d4c78361a 10/33: Fix typo in denote-rename-file doc string, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 6e050e4268 11/33: Start updating the manual for denote-rename-file (WORK-IN-PROGRESS), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 6179fb7541 14/33: Ensure double spacing in a sentence of denote-rename-file docstring, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 8e18c5664d 18/33: Add WORK-IN-PROGRESS implementation of 'denote-rename-file' that honours 'denote-prompts', ELPA Syncer, 2024/02/14