Re: [PATCH] upcoming new feature: smooth whole-window sideways scrolling

Chris Allegretta via "Development discussions." <[email protected]> Tue, 13 Jan 2026 01:03:31 -0500
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
On Sat, Jan 10, 2026 at 04:07:47PM +0100, Benno Schulenberg wrote:
> 
> Op 09-01-2026 om 11:42 schreef Benno Schulenberg:
> > Instead of horizontally scrolling just the current line by nearly
> > a screen width when the cursor is about to go offscreen, now all
> > screen lines are scrolled horizontally together by just the amount
> > needed to keep the cursor comfortably in view.

My feedback is simply: this is fantastic. I think I'd ideally want to be 
able to mess with the value of CUSHION, and I can already hear the 
constant complaints online were this not to be introduced as somehow 
tunable since it is a big change, even if it's an awesome one. Everyone is 
a UI/UX expert it seems noawadays, sigh. But IMO this scrolling distance 
value could probably be sufficiently tuned as a nanorc entry/long flag, 
and certainly doesn't need a short flag (were there any remaining).

I think I will probably still enable soft wrapping when I'm editing 
something with just 1 or two longer lines (i.e. composing email before I 
justify). But particularly for (mainly other folks') documents where the 
length of most lines is longer than COLS, I do think I'd want to use this 
all the time! And I appreciate that it does DTRT when soft wrapping is 
enabled.

But this is also a pretty substantial change in behavior if it ends up 
the default behavior instead of e.g. a toggle. Maybe worthy of a major 
version bump for next release if that is the plan?

chrisa
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQSNpv57+npBirPLI1S8s1bfkQCfpwUCaWXgLAAKCRC8s1bfkQCf
p2Z0AJwJZt4aDGZbn4rhtt3lrbgHTmkvzgCgu1i1xhy7ReFwBc/2TyPMZdI3+aE=
=qZca
-----END PGP SIGNATURE-----