-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add close tabs on the right action #9783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add close tabs on the right action #9783
Conversation
phaistonian
commented
Dec 2, 2025
mitchellh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I think we should support this feature but I think we should make this macOS only for now because I'm not sure if it's typical for this to behave this way on GTK. We can easily add it later.
I'll see if I can clean this up.
|
Actually just going to remove the context menu for now, the tab view API call is fine. |
fb758dd to
1387dbe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. I made some changes here:
- Removed GTK UI (but kept binding action functionality)
- Rename to "Close Tabs to the Right" instead of "on", because that's what Apple apps use
- Change to selector comparison for tab bar context menu detection
- Change to using an NSMenu extension so we can more easily add more stuff in the future
- Ensure the target is the correct target so you can right click non-focused tabs
- Added
xmarkicon to close targets to match Safari
|
Very cool that macOS supports this. I can see from Chrome on macOS that the string is exactly the same. Awesome. |