Skip to content

feat(ui): add middle-click to close tabs#140

Closed
victor-rm wants to merge 1 commit into
ZenNotes:mainfrom
victor-rm:feature/middle-click-close-tab
Closed

feat(ui): add middle-click to close tabs#140
victor-rm wants to merge 1 commit into
ZenNotes:mainfrom
victor-rm:feature/middle-click-close-tab

Conversation

@victor-rm

Copy link
Copy Markdown
Contributor

This PR introduces a small UX improvement by adding the ability to close tabs using the middle mouse button.

Since this is the standard behavior for tabs in most modern web browsers, it makes navigating the editor pane feel much more natural even for me as a heavy vim motion user. Users can now quickly close tabs without needing to aim exactly at the small close icon.

It's a very straightforward and isolated change, so I decided to open a PR directly for it.

I'm in love with the app! Thank you.

@victor-rm
victor-rm requested a review from adibhanna as a code owner June 12, 2026 19:16
@adibhanna

Copy link
Copy Markdown
Contributor

Thank you, this is a great little addition — clean, well-scoped, and the right implementation (onAuxClick for button 1 with an onMouseDown preventDefault to suppress the middle-click autoscroll/paste). Exactly how browsers do it.

I cherry-picked your commit onto the active release/v2.4.0 branch (4cdbb22) with your authorship preserved, so it'll ship in v2.4.0. Closing this PR (which targeted main) since the change is already in the release branch — not because it was rejected. 🙏

So glad you're enjoying the app, and thanks for contributing!

@adibhanna adibhanna closed this Jun 17, 2026
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