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

Add half_pgup and half_pgdn bindings #304

Closed
wants to merge 1 commit into from
Closed

Add half_pgup and half_pgdn bindings #304

wants to merge 1 commit into from

Conversation

friedev
Copy link

@friedev friedev commented Apr 5, 2022

Adds half_pgup and half_pgdn bindings (CmdHalfPgup and CmdHalfPgdn), which scroll by half a page, like vim and less. These are unbound by default, but are listed in the default config file and have a help entry.

This was implemented by refactoring pageUp and pageDown into a generic relativeScroll method called by all page up/down functions. There's a change that the float conversions might not yield exactly the same scroll distance, but it shouldn't be off by more than a line if so.

Fixes #303

@makew0rld
Copy link
Owner

Thanks for your contribution! I've opted to just change the behaviour of the original paging bindings, see #303.

@makew0rld makew0rld closed this Apr 13, 2022
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 this pull request may close these issues.

Binding Half Page Down
2 participants