-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Terminal doesn't copy on Enter (like conhost does) #4839
Comments
Using the |
Thanks for the suggestion! You're right that this is something that the Terminal doesn't do currently that conhost (the vintage console) does. You could actually probably get the Terminal to behave the same as conhost by adding the following to your keybindings: { "command": "copy", "keys": ["enter"] }, This will make enter work to copy the selection only when there's a selection. There's a good chance that we're going to close this as a duplicate of #3058 - we might decide to ad this by default in the near future. |
Yes, you are right. But what about using 'right click' to paste the copied item? How will that be handled? |
We might also need to implement the same context menu that we get on right-clicking the title bar of conhost.exe so that Windows Terminal behaves in a similar manner. That menu includes options like 'Mark', 'Copy', 'Paste' etc. The ability to mark text and copy it by pressing 'Enter' is what I wanted to say. |
@zadjii-msft Thank you for making me aware. But my second last comment remains unanswered. Both of these features have to be implemented at the same time. |
This may help you in that case. But I think you misunderstood my message. I was referring to the following comment:
|
I'm pretty sure I already answered that with
It's handled right here: terminal/src/cascadia/TerminalControl/TermControl.cpp Lines 897 to 908 in bf48ce5
Does right-click to paste not work for you currently? |
It is working for me. But it didn't work in the above case. So I just wanted to enquire if any change in the implementation of the feature is required. But since you have assured me that this key-binding (pertaining to the enter key) will be present by default in the future, I have no further queries. |
Going a bit off track: Did you get that piece of code you were looking for? If you feel everthing is done, you may close this issue now. |
It looks like the questions here have been answered. Right now, you can bind Thanks! |
Came here to mention the same, I miss the Select + Enter to perform a copy. Just noticed that when we are rolling out Wineows 11 and I'm trying to default to Windows Terminal rather than legacy Powershell. This is bound to be problematic for many users when we start rolling out Windows 11 which includes Windows Terminal as default. |
Description of the Bug:
When we work on Command Prompt or PowerShell without using Windows Terminal, we have the option of copying text by selecting it and pressing Enter key. Later, we can paste the text whenever required by right-clicking anywhere inside the window. But Windows Terminal does not allow us to work in a similar manner. When we select any text inside Windows Terminal and press Enter key to copy it, it simply jumps to a new command (carriage return) without actually saving the text to the clipboard.
This issue may seem similar to #4835, #4149, #2340 and #4621. All those issues focus that the shortcuts Ctrl+C or Ctrl+V are not working. These issues can be fixed by adjusting the keybindings, but the current issue has not been fixed as per my knowledge.
Steps to Reproduce:
Expected Behaviour:
The Terminal should have copied the text on pressing Enter. The copied text should have been visible inside Clipboard History. It should not jump to a new command (carriage return).
Screenshots:
Device and Application Information:
• OS Build: 10.0.18362.657
• Architecture: x64
• Application Version: 0.9.433.0
• Region: New Delhi, India
• Dev Version Installed: False
I’m just reporting the problem. I don’t want to fix it.
The text was updated successfully, but these errors were encountered: