-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
shift-click-drag resets selection start point #9787
Comments
Marking P1 for servicing into 1.7, since we've taken all the other selection fixes in there. Alternatively, I can back out all the selection changes from 1.7 and we'll go back to the thing we shipped in 1.6. It's got some known issues, but at least they're known ones! |
@DHowett - I will take a look later on today! I really hope we fix all in 1.7 rather than revert. |
On it. |
## PR Checklist * [x] Closes #9787 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. ## Validation Steps Performed * [x] single click = no selection * [x] single click and drag = selection starting from first point * [x] single click in unfocused pane and drag = focus pane, selection starting from first point * [x] double-click = selects a whole word * [x] triple-click = selects a whole line * [x] double-click and drag = selects a whole word, drag selects whole words * [x] triple-click and drag = selects a whole line, drag selects whole lines * [x] Shift single-click = defines start point * [x] second Shift single-click = defines end point * [x] Shift double-click = selects entire word * [x] Shift triple-click = selects entire line * [x] Shift double-click and drag = selects entire word, drag selects whole words * [x] Mouse mode: Shift single-click = defines start point * [x] Mouse mode: second Shift single-click = defines end point * [x] Mouse mode: Shift double-click = selects entire word * [x] Mouse mode: Shift triple-click = selects entire line * [x] Mouse mode: Shift double-click and drag = selects entire word, drag selects whole words * [x] With existing selection: single-click outside the selection and drag = establishes a new selection starting from the click point * [x] Click-drag to set selection, shift-click-drag outside of selection = extend selection while dragging (cherry picked from commit b8e36ba)
Is there an option available to reset selection? Those of us using tmux or vim with mouse support usually use "shift" to disable that app's mouse input so we can select and copy text straight to the Windows clipboard. It is a minor but often frustration that trying to go back and select some more and different text just extends the previous selection. Hitting esc will clear the selection for me, but 99% of the time I forget thus causing the frustration. |
Maybe a round-about way to achieve this behavior would be a 'deselect on copy' option while also having 'copyOnSelect' set to true. |
🎉This issue was addressed in #9790, which has now been successfully released as Handy links: |
🎉This issue was addressed in #9790, which has now been successfully released as Handy links: |
To add to @Don-Vito's test cases 😄
Right now, shift-click-drag resets the start point when the drag happens (but successfully extends when the click happens!)
The text was updated successfully, but these errors were encountered: