GNU bug report logs - #52384
26.3; dired buffer navigation tweak

Previous Next

Package: emacs;

Reported by: Michael Perry <amperry <at> provide.net>

Date: Thu, 9 Dec 2021 01:00:02 UTC

Severity: wishlist

Found in version 26.3

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Perry <amperry <at> provide.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; dired buffer navigation tweak
Date: Thu, 9 Dec 2021 00:39:39 +0000 (UTC)
[Message part 1 (text/plain, inline)]
Hello,

When visiting a directory in dired-mode, you get not only a list of contents,
but also a two-line header ('/path/to/directory' and 'total used ...')
and a trailing blank line. Those are a nuisance when navigating using
`M-<` and `M->'.

Can I suggest the following become standard?

(with-eval-after-load "dired"
  (define-key dired-mode-map (kbd "M-<")
    (lambda () (interactive) (beginning-of-buffer) (next-line 2)))
  (define-key dired-mode-map (kbd "M->")
    (lambda () (interactive) (end-of-buffer) (previous-line 1))))

It's truly a small issue, but it's an irritation that multiplies over time.

Thanks for your consideration.

Cheers,
A.M. Perry
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.