Subject: bug#75410: [PATCH] image-dired: Add extra keybinds for navigation

From: Gabriel Santos <[email-masked]>
Date: Sat, 25 Jan 2025 08:13:44 -0300

Hello,

Attached is the updated patch.

Here is the news entry I wrote:

"
Bound unused letters in 'image-dired-thumbnail-mode-map'
For a more comfortable navigation experience (as in, no modifier keys),
the keys "f", "b", "n", "p", "a" and "e" are now bound to the
same functions as their C- counterparts.
"

Let me know what you think about it!

--
Gabriel Santos

>From bd08de1878fdefd0aec586907f8d673b8ab5c0f6 Mon Sep 17 00:00:00 2001
From: Gabriel Santos <[email-masked]>
Date: Mon, 6 Jan 2025 16:56:31 -0300
Subject: [PATCH] image-dired: Add extra keybinds for navigation

* lisp/image/image-dired.el (image-dired-thumbnail-mode-map):
Bind previously unused keys for alternative navigation.
---
 etc/NEWS                  | 5 +++++
 lisp/image/image-dired.el | 9 +++++++++
 2 files changed, 14 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index 385e943c997..f299bc5c9b9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -370,6 +370,11 @@ When non-nil, buffer sizes are shown in human readable format.
 This allows passing a string with wildcards, or a cons cell where the
 first element is a list and the rest is a list of files.
 
+*** Bound unused letters in 'image-dired-thumbnail-mode-map'
+For a more comfortable navigation experience (as in, no modifier keys),
+the keys "f", "b", "n", "p", "a" and "e" are now bound to the
+same functions as their C- counterparts.
+
 ** Browse URL
 
 *** New user option 'browse-url-transform-alist'.
diff --git a/lisp/image/image-dired.el b/lisp/image/image-dired.el
index 452be29c5d5..3034f3ddb9c 100644
--- a/lisp/image/image-dired.el
+++ b/lisp/image/image-dired.el
@@ -950,6 +950,15 @@ You probably want to use this together with
 
 (defvar-keymap image-dired-thumbnail-mode-map
   :doc "Keymap for `image-dired-thumbnail-mode'."
+
+  ;; Regular navigation
+  "f"          #'image-dired-forward-image
+  "b"          #'image-dired-backward-image
+  "n"          #'image-dired-next-line
+  "p"          #'image-dired-previous-line
+  "a"          #'image-dired-move-beginning-of-line
+  "e"          #'image-dired-move-end-of-line
+
   "d"          #'image-dired-flag-thumb-original-file
   "<delete>"   #'image-dired-flag-thumb-original-file
   "m"          #'image-dired-mark-thumb-original-file
-- 
2.47.1