Feature Request: "Paste" should focus and paste #3434

Closed
opened 2026-01-30 23:21:10 +00:00 by claunia · 3 comments
Owner

Originally created by @flindeberg on GitHub (Aug 15, 2019).

Description of the new feature/enhancement

Using the mouse paste mechanism (regardless of right mouse, middle mouse or whatever mouse) on an unfocused terminal window / split-pane should focus and paste. Currently it focuses on windows and does nothing on panes.

Paste in window is currently: right click (or well, left click works as well for focus) + right click. Paste in split-panes is: left click + right click.

I only want to click once (regardless of middle mouse or right mouse or doing a rain dance in front of the camera) and not several times to paste text.

Also belong together with #524 function and use wise, since no-click-copy and single-click-paste are two of the best mechanisms out there 👍

Proposed technical implementation details (optional)

I haven't looked at the cose base, but I imaging it is a case of looking at how mouse-events are handled in focused contra unfocused windows and split-panes.

Originally created by @flindeberg on GitHub (Aug 15, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Using the mouse paste mechanism (regardless of right mouse, middle mouse or whatever mouse) on an unfocused terminal window / split-pane should focus _and_ paste. Currently it focuses on windows and does nothing on panes. Paste in window is currently: right click (or well, left click works as well for focus) + right click. Paste in split-panes is: left click + right click. I only want to click once (regardless of middle mouse or right mouse or doing a rain dance in front of the camera) and not several times to paste text. Also belong together with #524 function and use wise, since no-click-copy and single-click-paste are two of the best mechanisms out there 👍 <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) I haven't looked at the cose base, but I imaging it is a case of looking at how mouse-events are handled in focused contra unfocused windows and split-panes. <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@richardszalay commented on GitHub (Sep 16, 2019):

Related: You cannot copy text from an unfocused pane without first focusing it. If you try, nothing happens.

(I would think that both these issues could potentially be resolved by focusing on mousedown rather than click)

@richardszalay commented on GitHub (Sep 16, 2019): Related: You cannot copy text from an unfocused pane without first focusing it. If you try, nothing happens. (I would think that both these issues could potentially be resolved by focusing on mousedown rather than click)
Author
Owner

@carlos-zamora commented on GitHub (May 12, 2020):

This got fixed. I have no idea when though. I recall working with @leonMSFT on this back when we were at the office.

I can't seem to find the PR that actually fixed it though.

@carlos-zamora commented on GitHub (May 12, 2020): This got fixed. I have no idea when though. I recall working with @leonMSFT on this back when we were at the office. I can't seem to find the PR that actually fixed it though.
Author
Owner

@carlos-zamora commented on GitHub (May 12, 2020):

Leon found it: https://github.com/microsoft/terminal/pull/4506

@carlos-zamora commented on GitHub (May 12, 2020): Leon found it: https://github.com/microsoft/terminal/pull/4506
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3434