Function: denote-dired-rename-files

denote-dired-rename-files is an autoloaded, interactive and byte-compiled function defined in denote.el.

Signature

(denote-dired-rename-files)

Documentation

Rename Dired marked files same way as denote-rename-file.

Rename each file in sequence, making all the relevant prompts. Unlike denote-rename-file, do not prompt for confirmation of the changes made to the file: perform them outright (same as setting denote-rename-confirmations to a nil value).

Key Bindings

Aliases

denote-dired-rename-marked-files

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-dired-rename-files ()
  "Rename Dired marked files same way as `denote-rename-file'.
Rename each file in sequence, making all the relevant prompts.
Unlike `denote-rename-file', do not prompt for confirmation of
the changes made to the file: perform them outright (same as
setting `denote-rename-confirmations' to a nil value)."
  (declare (interactive-only t))
  (interactive nil dired-mode)
  (let ((denote-used-identifiers (denote--get-all-used-ids))
        (denote-rename-confirmations nil))
    (if-let* ((marks (dired-get-marked-files)))
        (progn
          (dolist (file marks)
            (pcase-let ((`(,title ,keywords ,signature ,date ,identifier)
                         (denote--rename-get-file-info-from-prompts-or-existing file)))
              (denote--rename-file file title keywords signature date identifier)))
          (denote-update-dired-buffers))
      (user-error "No marked files; aborting"))))