~protesilaos/general-issues

1

dired-preview: Set other-window-scroll-buffer?

Karthik Chikmagalur <contact@karthinks.com>
Details
Message ID
<87jzvp484n.fsf@gmail.com>
DKIM signature
missing
Download raw message
Hi Prot,

Thank you for continuing peep-dired. I'm one of its many inactive
maintainers!

I had a quick usability suggestion: do you think the preview window's
buffer should be set as the `other-window-scroll-buffer' for the dired
buffer?  Most of the time (but unfortunately not always) the previewed
buffer is the one we want to scroll with `C-M-v` when using
peep-dired/dired-preview.

This is related but not a suggestion for dired-preview's default
behavior: Another thing I've done for a while is to rebind `SPC' and
`S-SPC' to `scroll-other-window' and `scroll-other-window-down' when
previews are active. I add a little more sugar so that if I've reached
the end of the previewed file, the cursor moves down in dired and the
next file is previewed. This way I use dired as a one-button pager
across all files in a directory.

Karthik
Details
Message ID
<87sfadhrjj.fsf@protesilaos.com>
In-Reply-To
<87jzvp484n.fsf@gmail.com> (view parent)
DKIM signature
missing
Download raw message
> From: Karthik Chikmagalur <contact@karthinks.com>
> Date: Tue, 27 Jun 2023 01:33:28 -0700
>
> Hi Prot,

Hello Karthik,

> Thank you for continuing peep-dired. I'm one of its many inactive
> maintainers!

You are welcome!

> I had a quick usability suggestion: do you think the preview window's
> buffer should be set as the `other-window-scroll-buffer' for the dired
> buffer?  Most of the time (but unfortunately not always) the previewed
> buffer is the one we want to scroll with `C-M-v` when using
> peep-dired/dired-preview.

Makes sense.  Can you elaborate on the "not always" part?  Maybe we can
have some check in place, subject to a user option.

> This is related but not a suggestion for dired-preview's default
> behavior: Another thing I've done for a while is to rebind `SPC' and
> `S-SPC' to `scroll-other-window' and `scroll-other-window-down' when
> previews are active. I add a little more sugar so that if I've reached
> the end of the previewed file, the cursor moves down in dired and the
> next file is previewed. This way I use dired as a one-button pager
> across all files in a directory.

Good idea!  Do you want to prepare a patch?

All the best,
Prot

-- 
Protesilaos Stavrou
https://protesilaos.com
Reply to thread Export thread (mbox)