[PR #5346] Remove singleLine copy from Shift+Click, CopyOnSelect #26273

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

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

State: closed
Merged: Yes


Summary of the Pull Request

This fixes an issue where a shift+click selection with copyOnSelect enabled would result in copying the content as a single line.

PR Checklist

Detailed Description of the Pull Request / Additional comments

I've been thinking a lot about this issue and how it relates to the copy/paste discussions we've been having over the past few weeks. Considering that the majority of users want regular copy, it makes sense to default to that in this case too.

If a user wants to perform a special form of copy, it makes sense that they should use their custom keybinding to accomplish that. This kind of behavior aligns with that kind of philosophy.

Validation Steps Performed

The following scenarios were tested with copyOnSelect enabled.

scenario behavior
Perform a shift+click selection content copied w/ newlines
right-click clipboard paste
copy keybinding (singleLine disabled) content copied w/ newlines
copy keybinding (singleLine enabled) content copied as single line
**Original Pull Request:** https://github.com/microsoft/terminal/pull/5346 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This fixes an issue where a shift+click selection with `copyOnSelect` enabled would result in copying the content as a single line. ## PR Checklist * [X] Closes #4737 ## Detailed Description of the Pull Request / Additional comments I've been thinking a lot about this issue and how it relates to the copy/paste discussions we've been having over the past few weeks. Considering that the majority of users want regular copy, it makes sense to default to that in this case too. If a user wants to perform a special form of copy, it makes sense that they should use their custom keybinding to accomplish that. This kind of behavior aligns with that kind of philosophy. ## Validation Steps Performed The following scenarios were tested with `copyOnSelect` enabled. | scenario | behavior | |--|--| | Perform a shift+click selection | content copied w/ newlines | | right-click | clipboard paste | | copy keybinding (`singleLine` disabled) | content copied w/ newlines | | copy keybinding (`singleLine` enabled) | content copied as single line |
claunia added the pull-request label 2026-01-31 09:15:05 +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#26273