"copy on select" doesn't work good #19252

Closed
opened 2026-01-31 06:38:09 +00:00 by claunia · 4 comments
Owner

Originally created by @ozinka on GitHub (Jan 20, 2023).

Windows Terminal version

1.16.3463.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Enable option in settings "copy on select" in settings.
Select something in terminalLet it be "some text 1".
image
Switch to another application e.g. notepad.
Paste.
Copy anything else in notepad and paste into terminal with right click. Let it be "some text 2".
image
Switch to terminal and paste text with Mouse Right Click.
image

Expected Behavior

Expecting to see pasted "some text 2"

Actual Behavior

Selection from Terminal become not selected and pasted text is still "some text 1".
image

I'm expecting to see copied new text. But when I paste with Mouse Right Click, it copies again selection from Terminal and paste it.
During work I often use copy/paste functions and this behavior brings significant inconvenience.

For example, putty keeps selection and data in clipboard till you copy anything else in other place. In that case selection (background highlighting) in putty just deselected.
It looks Mouse Right Click does two action copy selected+paste, but I expect to see only paste (maybe +deselect).
It seems in some previous versions of ms terminal it worked properly.
Thnx

Originally created by @ozinka on GitHub (Jan 20, 2023). ### Windows Terminal version 1.16.3463.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce Enable option in settings "copy on select" in settings. Select something in terminalLet it be "some text 1". ![image](https://user-images.githubusercontent.com/34980479/213707130-79315f50-007f-484a-a244-1925d07dc3fa.png) Switch to another application e.g. notepad. Paste. Copy anything else in notepad and paste into terminal with right click. Let it be "some text 2". ![image](https://user-images.githubusercontent.com/34980479/213707296-c71d4b8c-e94f-482b-9423-41f508adf81f.png) Switch to terminal and paste text with Mouse Right Click. ![image](https://user-images.githubusercontent.com/34980479/213707476-6120cc2d-73d0-4693-a8b9-925b9240c20d.png) ### Expected Behavior Expecting to see pasted "some text 2" ### Actual Behavior Selection from Terminal become not selected and pasted text is still "some text 1". ![image](https://user-images.githubusercontent.com/34980479/213707596-35f70d7a-873d-42ca-8534-78aba561e8bb.png) I'm expecting to see copied new text. But when I paste with Mouse Right Click, it copies again selection from Terminal and paste it. During work I often use copy/paste functions and this behavior brings significant inconvenience. For example, putty keeps selection and data in clipboard till you copy anything else in other place. In that case selection (background highlighting) in putty just deselected. It looks Mouse Right Click does two action copy selected+paste, but I expect to see only paste (maybe +deselect). It seems in some previous versions of ms terminal it worked properly. Thnx
Author
Owner

@lhecker commented on GitHub (Jan 23, 2023):

In other words, when copy-on-select is enabled we shouldn't bind right click to copy-selection. That makes sense to me! ...and seems easy to fix.

@lhecker commented on GitHub (Jan 23, 2023): In other words, when copy-on-select is enabled we shouldn't bind right click to copy-selection. That makes sense to me! ...and seems easy to fix.
Author
Owner

@zadjii-msft commented on GitHub (Jan 23, 2023):

This sounds a bit like the same thing I'm trying to solve with #14635...

@zadjii-msft commented on GitHub (Jan 23, 2023): This sounds a bit like the same thing I'm trying to solve with #14635...
Author
Owner

@carlos-zamora commented on GitHub (Jan 25, 2023):

Thanks for the report. I'm going to mark this as a /dup of #14464. @zadjii-msft just be sure to keep an eye on this when working on #14635 please.

@carlos-zamora commented on GitHub (Jan 25, 2023): Thanks for the report. I'm going to mark this as a /dup of #14464. @zadjii-msft just be sure to keep an eye on this when working on #14635 please.
Author
Owner

@ghost commented on GitHub (Jan 25, 2023):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 25, 2023): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19252