How to only scroll half a "page" up with the keyboard? #128

Closed
opened 1 year ago by las · 5 comments
las commented 1 year ago

I can see that there is a key binding for scrolling up "one page", but I want to only scroll up "half a page" since often what I am looking for will be split apart at the "page boundary".

Thanks

I can see that there is a key binding for scrolling up "one page", but I want to only scroll up "half a page" since often what I am looking for will be split apart at the "page boundary". Thanks
dnkl commented 1 year ago
Owner

That is currently not possible, I'm afraid.

Now, adding new actions for half-page scrolling is of course an easy thing to do. Question is, should we do that, or try to add a more generic solution where the user can specify the exact number of lines to scroll?

The latter means we'll have to come up with a way to write that in foot.ini, and is likely to be, at least somewhat, ugly. It will also increase the complexity of the config parser.

The first solution (adding two new actions) is much simpler. But I guess it's just going to be a matter of time before someone asks for a way to scroll 1/3 page... But perhaps it is still good enough, and users will just have to make do with either full page or half page scrolling.

I'm open for suggestions :)

That is currently not possible, I'm afraid. Now, adding new actions for half-page scrolling is of course an easy thing to do. Question is, should we do that, or try to add a more generic solution where the user can specify the exact number of lines to scroll? The latter means we'll have to come up with a way to write that in `foot.ini`, and is likely to be, at least somewhat, ugly. It will also increase the complexity of the config parser. The first solution (adding two new actions) is much simpler. But I guess it's just going to be a matter of time before someone asks for a way to scroll 1/3 page... But perhaps it is still good enough, and users will just have to make do with either full page or half page scrolling. I'm open for suggestions :)
dnkl added the
enhancement
label 1 year ago
dnkl commented 1 year ago
Owner

Now, adding new actions for half-page scrolling is of course an easy thing to do. Question is, should we do that, or try to add a more generic solution where the user can specify the exact number of lines to scroll?

Now that I think about it, scrolling by line count doesn't solve this problem - how many lines is a half-page?

Thus, adding actions for half-page scrolling seems like the correct thing to do.

> Now, adding new actions for half-page scrolling is of course an easy thing to do. Question is, should we do that, or try to add a more generic solution where the user can specify the exact number of lines to scroll? Now that I think about it, scrolling by line count doesn't solve this problem - how _many_ lines is a half-page? Thus, adding actions for half-page scrolling seems like the correct thing to do.
dnkl commented 1 year ago
Owner

Might make sense to add a command to scroll up/down a single line too.

Might make sense to add a command to scroll up/down a single line too.
las commented 1 year ago
Poster

Thanks! Currently I just bind a keyboard key to mouse scroll to scroll more gradually. I think it makes sense to add single line scrolling too since you can already do that with your mouse, so I assume that it wouldn't be so much code?

Thanks! Currently I just bind a keyboard key to mouse scroll to scroll more gradually. I think it makes sense to add single line scrolling too since you can already do that with your mouse, so I assume that it wouldn't be so much code?
las closed this issue 1 year ago
dnkl commented 1 year ago
Owner

Note that the PR hasn't been merged yet, and that I'm considering renaming the new actions before I do (to better match the actions for scrolling single lines, if I decide to add them).

so I assume that it wouldn’t be so much code?

No, just a few lines :)

Note that the PR hasn't been merged yet, and that I'm considering renaming the new actions before I do (to better match the actions for scrolling single lines, if I decide to add them). > so I assume that it wouldn’t be so much code? No, just a few lines :)
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.