[PR #6322] Implement Shift+MultiClick Selection Expansion #26647

Open
opened 2026-01-31 09:17:19 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/6322

State: closed
Merged: Yes


This pull request implements shift+double/triple click. Proper behavior
(as described in #4557) is to only expand one selection point, not both.

Adding the bool targetStart was a bit weird. I decided on this being
the cleanest approach though because I still want PivotSelection to be
its own helper function. Otherwise, the concept of "pivoting" gets kinda
messy.

Validation Steps Performed

Manual testing as described on attached issue.
Tests were added for Shift+Click and pivoting the selection too.

Closes #4557

**Original Pull Request:** https://github.com/microsoft/terminal/pull/6322 **State:** closed **Merged:** Yes --- This pull request implements shift+double/triple click. Proper behavior (as described in #4557) is to only expand one selection point, not both. Adding the `bool targetStart` was a bit weird. I decided on this being the cleanest approach though because I still want `PivotSelection` to be its own helper function. Otherwise, the concept of "pivoting" gets kinda messy. ## Validation Steps Performed Manual testing as described on attached issue. Tests were added for Shift+Click and pivoting the selection too. Closes #4557
claunia added the pull-request label 2026-01-31 09:17:19 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26647