feat: configurable click behavior to close tabs#218
Open
AryanRogye wants to merge 6 commits intothe-ora:mainfrom
Open
feat: configurable click behavior to close tabs#218AryanRogye wants to merge 6 commits intothe-ora:mainfrom
AryanRogye wants to merge 6 commits intothe-ora:mainfrom
Conversation
Greptile SummaryThis PR adds a configurable click gesture (middle-click or Option+Click) to close the active browser tab directly from the sidebar, exposed via a new "Close active tab with:" picker in General Settings. The implementation is clean overall — a new Key finding:
The core feature works correctly and persistence is handled properly. The persistence layer and settings UI are straightforward and well-implemented. Confidence Score: 2/5
Sequence DiagramsequenceDiagram
participant User
participant AppKit
participant Coordinator as ClickDetector.Coordinator
participant TabManager
participant SidebarView
User->>AppKit: Middle-click or Option+Click
AppKit->>Coordinator: NSEvent local monitor callback
Coordinator->>Coordinator: isOverView(event)?
alt cursor inside sidebar bounds
Coordinator->>Coordinator: fire(onClick) — throttle check
Coordinator->>TabManager: closeActiveTab()
Coordinator-->>AppKit: return event (not consumed)
AppKit->>SidebarView: event propagates to normal hit-testing
else cursor outside sidebar
Coordinator-->>AppKit: return event (pass through)
end
Last reviewed commit: 78bda0d |
Contributor
Author
|
lmk, I’ll fix the lint issues soon. Just pushed this while taking a break from studying for an exam. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds feature for #192
I wanted this feature but with option click, so I made it configurable in the settings, supports middle mouse and Option+click
Configure in settings
Screen.Recording.2026-03-08.at.9.13.02.PM.mov
only thing is that I cant test the middle mouse button because I dont have one
but claude told me that checking
event.buttonNumber == 2would handle that