nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] RFC: change the behavior of the two scrolling commands (M--


From: Benno Schulenberg
Subject: [Nano-devel] RFC: change the behavior of the two scrolling commands (M-- and M-=)?
Date: Sat, 10 Mar 2018 17:15:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi all,

Op 10-03-18 om 11:39 schreef Benno Schulenberg:
> What would have been better is when Scroll-Up/Down would have kept the cursor
> not in the same screen position but in the same *text* position, because that
> is what I normally want.  (And that is what Emacs does.  Not that Emacs is
> sacrosanct, but generally it has well thought-out behavior.)
What's more, Vim behaves the same way (^E/^Y): you can scroll a file that
fully fits on screen (and you cannot scroll up beyond the first line).
*And* it will keep the cursor in the same text position when possible.

So, I propose that nano be changed to do the same thing: keep the cursor
at the same place in the text instead of at the same place on the screen.
See the upcoming patch.  (Documentation changes not yet included.)

Any objections, comments, hoorays?

Benno


PS: If you want to see the line-scrolling behavior of Emacs, add the
following two lines to your ~/.emacs file:

  (global-set-key (kbd "M-=") 'scroll-up-line)
  (global-set-key (kbd "M--") 'scroll-down-line)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]