[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] RFC: change the behavior of the two scrolling commands
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] RFC: change the behavior of the two scrolling commands (M-- and M-=)? |
Date: |
Sun, 11 Mar 2018 13:31:48 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Op 11-03-18 om 00:30 schreef Brand Huntsman:
> and must then move cursor back up to previous position in text,
Precisely. That is what I would do regularly: three times M-- followed
by three times <Down>. (I often want to scroll back up a little.)
Okay. I need one more vote to clinch this.
> I also wanted to add a key that scrolls cursor to center of window.
I have a patch for that, posted a long while ago [1]. It has evolved
a bit since then, integrating it into the ^L (refresh) function so it
doesn't need a separate key. I'll have to grab it off the old laptop
and update it for the current situation, and will repost.
[1] http://lists.gnu.org/archive/html/nano-devel/2016-05/msg00006.html
> And/or a toggle mode that keeps cursor from changing lines in the window. You
> press enter or down arrow and the text scrolls to keep cursor on same line in
> window. This would be better than a key to center the view because it always
> keeps the view centered on any line you choose, which doesn't need to be the
> middle of the window. I haven't written a patch yet to see if it would be
> annoying, but it sounds good in theory.
At my uni they had an editor that worked like that: the cursor was
always on the center line of the screen. It worked. But it also
meant that you could never have a full page of preceding text in
view while adding more on the bottom line. Your proposed mechanism
would allow that. Sounds interesting, but...
Benno
signature.asc
Description: OpenPGP digital signature
Re: [Nano-devel] RFC: change the behavior of the two scrolling commands (M-- and M-=)?, Benno Schulenberg, 2018/03/17