Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable PageUp & PageDown behaviour #1808

Closed
outfrost opened this issue Aug 3, 2020 · 1 comment · Fixed by #3518
Closed

Configurable PageUp & PageDown behaviour #1808

outfrost opened this issue Aug 3, 2020 · 1 comment · Fixed by #3518

Comments

@outfrost
Copy link

outfrost commented Aug 3, 2020

Description of the problem or steps to reproduce

Currently, with the default keybindings in micro, pressing PageUp or PageDown moves the cursor one page up or down, and scrolls the view by the minimum amount necessary.

I would prefer the PageUp / PageDown behaviour from nano. It always scrolls the view and the cursor by the same amount (buffer line count permitting), which helps a lot in keeping track of where my cursor is, and which part of the file I'm looking at.

In other words, in nano, when my cursor is in the middle of the screen, and I press PageUp or PageDown, and scrolling by a full page is possible, then the view will be scrolled by a full page, and my cursor will still be in the middle of the screen. It means I don't have to keep scanning the whole screen to reorient myself as I page up and down, and it makes it easier (at least IMO) to reposition the cursor once I'm done scrolling.

I can imagine that the nano way might not be the most intuitive for everyone, so I'd like to propose for this to be a config option.

There is also another issue that ties into this. Nano preserves 2 lines of overlap between pages, which is helpful when reading or visually scanning the buffer across pages (the last 2 lines of one page are the first 2 lines of the next page). Micro not only doesn't do that currently, it actually skips one line entirely. I think this could be addressed by making sure micro preserves an overlap equal to scrollmargin.

Specifications

Version: 2.0.6
Commit hash: 60846f5
Compiled on July 03, 2020
OS: Manjaro
Terminal: Konsole

@chasemp
Copy link

chasemp commented Feb 1, 2024

As a fellow nano-ite who finds micro attractive, I was also strugging with the pageup/pagedown behavior. I do find the CursorPageUp and CursorPageDown actions /closer/ to how I hope for it to work and have settled on that.

I experimented with using "ScrollDown" "ScrollUp" and tinkering with scrollspeed to compensate prior to that and it didn't quite fit the need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants