-
Notifications
You must be signed in to change notification settings - Fork 54
feat(selection): Add triple-click and selection improvements #115
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
Open
0xBigBoss
wants to merge
9
commits into
coder:main
Choose a base branch
from
0xBigBoss:feat/selection-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+117
−44
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6aee71d
feat(selection): Add triple-click to select entire line
0xBigBoss 4364419
fix(selection): Use event.detail for double/triple-click detection
0xBigBoss 91b4a96
fix(selection): Expand word chars to include paths like native Ghostty
0xBigBoss 67019f7
fix(selection): Triple-click selects text content only, not full width
0xBigBoss 6ec7e67
fix(selection): Use scrollback-aware line retrieval in triple-click
0xBigBoss 7e5dbe5
fix(selection): Handle single-character line selection in triple-click
0xBigBoss 7c3b259
fix(selection): Properly handle single-cell selections without extra …
0xBigBoss 53fa302
fix(selection): Clear same-cell selection on mouseup without drag
0xBigBoss 6ad518e
fix(renderer): Use semi-transparent selection overlay like VS Code
0xBigBoss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
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.
Clearing a click-without-drag selection here bypasses
clearSelection(), so no dirty rows are recorded. BecausehasSelection()now returns true for same-cell selections, a render can paint the highlight between mousedown and mouseup; after you null out the selection andreturn, the renderer has no reason to redraw that row, so the highlight can stick until some unrelated redraw (cursor blink/move, new text). Consider callingclearSelection()or at leastmarkCurrentSelectionDirty()before nulling out the selection so the row is repainted.Useful? React with 👍 / 👎.
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.
@0xBigBoss I noticed this as well while trying out your changes