Repository navigation
Gestures support on MacOS #13442
Unanswered
pszypowicz
asked this question in
Feature Requests, Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi Everyone,
I spend this week on playing with gestures support for Ghostty, was trying to nail down the feeling of native MacOS app.
I know this is not a real contribution, and it does not reach the quality of the Ghostty yet (but I absolutely from beginning was directing model in the plan phase into "we are building to the upstream standard"), but I had a lot of fun while doing it and had some really interesting issues to solve.
Trackpad Gestures are HARD, proper hard. It was a single most challenging part, to nail down - and even when I though "I got it!" - then I used laptop not on the flat desk but on the chair with legs on the table - and found out that obviously - palm rejection is a thing and not just "nice to have" when Macbooks Trackpads are as enormous as they are.
So I was iterating on the trackpad support so much, that eventually throw it into its own repo, with dedicated tests and versioning to make it's development lifecycle independent from Ghostty.
Then with proven Trackpad lib, I started to integrate it into ghostty - and also - problems. Mainly inertia slipping when jumping from one tab via gesture to other tab. Which required the trackpad monitor to land in the main loop so it could be properly isolated.
I am driving this myself for a couple days already and it feels awesome. I wanted to share and maybe ask for opinions. I would love to prepare it for contribution (This would probably mean that TrackpadKit would get eaten by the ghostty itself).
Defaults:
there is also support for all gestures: 2,3,4 fingers swipes.
Quirks:
onceforceforcefor 2 finger horizontal swipe for tab jump - but entered the app like vim and you want to horizontally scroll - you holdshiftwhile swiping (this can be disabled or rebinded)Links:
If you would like to try it (ad-hoc signed):
brew install --cask pszypowicz/tap/ghostty-gesturesJust remember:
And finally, obviously, I was using LLM/AI - in this case it was Claude - mainly Fable 5
All reactions