Specify number of lines for scollUp and scrollDown commands (+ follow system setting?) #7093

Closed
opened 2026-01-31 00:54:45 +00:00 by claunia · 6 comments
Owner

Originally created by @Livven on GitHub (Mar 22, 2020).

Description of the new feature/enhancement

It would be nice if the scrollUp and scrollDown commands supported a lines argument that would specify how many lines to scroll.

Alternatively or additionally, it might make sense to set the default to the number of lines the mouse wheel is set to scroll, i.e. usually 3. This seems more useful to me as a default than just scrolling a single line, which is very slow, or scrolling a whole page, which can be jarring (at least without smooth scrolling #1400).

Proposed technical implementation details (optional)

Originally created by @Livven on GitHub (Mar 22, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> It would be nice if the `scrollUp` and `scrollDown` commands supported a `lines` argument that would specify how many lines to scroll. Alternatively or additionally, it might make sense to set the default to the number of lines the mouse wheel is set to scroll, i.e. usually 3. This seems more useful to me as a default than just scrolling a single line, which is very slow, or scrolling a whole page, which can be jarring (at least without smooth scrolling #1400). # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 22, 2020):

We've got a global setting, "rowsToScroll", that configures how many lines to scroll with the wheel. If you do not set it, it defaults to your system setting (as set in the Mouse settings page.) If I recall, that default on Windows is 3.
If you're using a precision trackpad, that setting should still apply.

@DHowett-MSFT commented on GitHub (Mar 22, 2020): We've got a global setting, `"rowsToScroll"`, that configures how many lines to scroll with the wheel. If you do not set it, it defaults to your system setting (as set in the Mouse settings page.) If I recall, that default on Windows is 3. If you're using a precision trackpad, that setting should still apply.
Author
Owner

@Livven commented on GitHub (Mar 22, 2020):

I was talking about the keyboard-bindable commands :)

@Livven commented on GitHub (Mar 22, 2020): I was talking about the keyboard-bindable commands :)
Author
Owner

@zadjii-msft commented on GitHub (Mar 23, 2020):

You know, when I first spec'd arguments for keybindings, I called out scrollUp and scrollDown as two actions that needed args for customizable values. Looks like that never got turned into an actual issue.

@zadjii-msft commented on GitHub (Mar 23, 2020): You know, when I first [spec'd arguments for keybindings](https://github.com/microsoft/terminal/blob/master/doc/specs/%231142%20-%20Keybinding%20Arguments.md), I called out `scrollUp` and `scrollDown` as two actions that needed args for customizable values. Looks like that never got turned into an actual issue.
Author
Owner

@Livven commented on GitHub (Mar 23, 2020):

@zadjii-msft For me personally it would actually be enough if the value was simply linked to rowsToScroll or the Windows mouse wheel setting, because that already fixes the issue of scrolling by just 1 line being super slow. But of course additional customization doesn't hurt.

(accidentally hit the close issue button there)

@Livven commented on GitHub (Mar 23, 2020): @zadjii-msft For me personally it would actually be enough if the value was simply linked to `rowsToScroll` or the Windows mouse wheel setting, because that already fixes the issue of scrolling by just 1 line being super slow. But of course additional customization doesn't hurt. (accidentally hit the close issue button there)
Author
Owner

@DHowett-MSFT commented on GitHub (Mar 24, 2020):

Thanks! Triaged this onto the backlog, but marked it Help-Wanted. If somebody were to implement this before v1, I'd almost certainly pull it in.

@DHowett-MSFT commented on GitHub (Mar 24, 2020): Thanks! Triaged this onto the backlog, but marked it Help-Wanted. If somebody were to implement this before v1, I'd almost certainly pull it in.
Author
Owner

@ghost commented on GitHub (Nov 11, 2020):

:tada:This issue was addressed in #7924, which has now been successfully released as Windows Terminal Preview v1.5.3142.0.🎉

Handy links:

@ghost commented on GitHub (Nov 11, 2020): :tada:This issue was addressed in #7924, which has now been successfully released as `Windows Terminal Preview v1.5.3142.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.5.3142.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7093