Skip to content

Added mouse_scroll_lines option#128

Merged
orhun merged 1 commit into
orhun:mainfrom
veksha:mouse_scroll_lines
Jul 15, 2026
Merged

Added mouse_scroll_lines option#128
orhun merged 1 commit into
orhun:mainfrom
veksha:mouse_scroll_lines

Conversation

@veksha

@veksha veksha commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Now mouse wheel scrolls screen by 3 lines (configurable)

@orhun

orhun commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Hey, this looks good! I'm wondering when/why this is useful, could you maybe explain it?

@veksha

veksha commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Hi. when you want to scroll up with your mouse long wall of text it helps to scroll a little faster.

Comment thread config/ratty.toml
default_cols = 104
default_rows = 32
scrollback = 2000
mouse_scroll_lines = 3

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can rename this to mouse_scrollback? Just to align with the scrollback option above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or scrollback_speed, or something like that. choose what you wish :)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked some LLM:

Examples: Alacritty uses scrolling.multiplier, kitty uses wheel_scroll_multiplier, Ghostty uses mouse-scroll-multiplier, WezTerm uses scrollback_lines for retained history.

• For this PR, I’d keep mouse_scroll_lines.

It’s better than both options you were considering:

  • mouse_scrollback sounds like the size of the scrollback buffer, especially since ratty already has scrollback = 2000.
  • mouse_speed is too broad and could mean cursor movement, sensitivity, selection speed, drag speed, etc.
  • mouse_scroll_lines says exactly what the PR does: number of lines scrolled per mouse wheel tick.

If you want to align more with other terminal naming, mouse_scroll_multiplier is also defensible, but since the value is literally line count and the PR says “scrolls screen by 3 lines,”
mouse_scroll_lines is the clearest name for this implementation.

so yeah, I think it's all good to go :)

@orhun orhun merged commit 04180e9 into orhun:main Jul 15, 2026
11 checks passed
@veksha veksha deleted the mouse_scroll_lines branch July 15, 2026 13:07
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.

2 participants