1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00

Improve image-dired-display-properties-format

* lisp/image/image-dired.el
(image-dired-display-properties-format): Change default format,
improve docstring and add :safe property
This commit is contained in:
Stefan Kangas 2022-09-15 23:56:11 +02:00
parent c3828d47dd
commit 89084a193e
2 changed files with 20 additions and 5 deletions

View File

@ -2093,6 +2093,12 @@ next image.
This replaces the message most navigation commands in the thumbnail
buffer used to show at the bottom of the screen.
---
*** 'image-dired-display-properties-format' default has changed.
If you prefer the old format, add this to your Init file:
(setopt image-dired-display-properties-format "%b: %f (%t): %c")
+++
*** 'image-dired-show-all-from-dir-max-files' increased to 1000.
This user option controls asking for confirmation when starting

View File

@ -293,12 +293,21 @@ For more information, see the documentation for
`image-dired-toggle-movement-tracking'."
:type 'boolean)
(defcustom image-dired-display-properties-format "%b: %f (%t): %c"
(defcustom image-dired-display-properties-format "%-40f %b %t %c"
"Display format for thumbnail properties.
%b is replaced with associated Dired buffer name, %f with file
name (without path) of original image file, %t with the list of
tags and %c with the comment."
:type 'string)
This is used for the header line in the Image-Dired buffer.
The following %-specs are replaced by `format-spec' before
displaying:
\"%b\" The associated Dired buffer name.
\"%f\" The file name (without a directory) of the
original image file.
\"%t\" The list of tags (from the Image-Dired database).
\"%c\" The comment (from the Image-Dired database)."
:type 'string
:safe #'stringp
:version "29.1")
(defcustom image-dired-external-viewer
;; TODO: Use mailcap, dired-guess-shell-alist-default,