Skip to content

config: add gtk-horizontal-tab-scroll option#12659

Open
00JCIV00 wants to merge 2 commits into
ghostty-org:mainfrom
00JCIV00:config/gtk-horizontal-tab-scroll
Open

config: add gtk-horizontal-tab-scroll option#12659
00JCIV00 wants to merge 2 commits into
ghostty-org:mainfrom
00JCIV00:config/gtk-horizontal-tab-scroll

Conversation

@00JCIV00

Copy link
Copy Markdown

I've implemented a GTK toggle (gtk-horizontal-tab-scroll) for the 2-finger tab swiping introduced in #10575.

This resolves the issue presented in #11566. Simply put, this allows users to decide whether or not they want to use horizontal tab scrolling or just have the events passed through. Passing through the horizontal scroll events allows programs like Neovim to use them for horizontal scrolling.

This PR was largely generated by Claude Code and fully reviewed/refined by me.

Add a boolean config option to enable/disable two-finger horizontal
touchpad scrolling for switching tabs. Defaults to true to preserve
existing behavior.

When tab scrolling is disabled or the scroll source is not a touchpad,
forward horizontal scroll events to the terminal so applications like
neovim can handle them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@00JCIV00 00JCIV00 requested a review from a team as a code owner May 11, 2026 15:51
@Ind-E

Ind-E commented May 12, 2026

Copy link
Copy Markdown

tested this, and it allows me to use touchpad and horizontal scroll wheel to scroll in nvim

Comment thread src/config/Config.zig
@jcollie jcollie enabled auto-merge May 18, 2026 02:13
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.

3 participants