Skip to content
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

Copy and Paste Bug while using Ctrl + C and Ctrl + V shortcuts #2420

Closed
nabanita-sarkar opened this issue Aug 13, 2019 · 10 comments
Closed

Copy and Paste Bug while using Ctrl + C and Ctrl + V shortcuts #2420

nabanita-sarkar opened this issue Aug 13, 2019 · 10 comments
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@nabanita-sarkar
Copy link

nabanita-sarkar commented Aug 13, 2019

Environment

Windows build number: 1903 for cmd
Windows Terminal version (if applicable): latest from the Microsoft store

Any other software? N/A

Steps to reproduce

Copy any text using keyboard shortcut ctrl + C and try to paste it using ctrl + V shortcut.

Expected behavior

This should paste the copied text in the command line.

Actual behavior

After typing Ctrl + V only ^v is showing.

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 13, 2019
@nabanita-sarkar nabanita-sarkar changed the title Copy and Paste Bug Report (IF I DO NOT CHANGE THIS THE ISSUE WILL BE AUTO-CLOSED) Copy and Paste Bug Report Aug 13, 2019
@nabanita-sarkar nabanita-sarkar changed the title Copy and Paste Bug Report Copy and Paste Bug while using Ctrl + C and Ctrl + V shortcuts Aug 13, 2019
@zadjii-msft
Copy link
Member

Do you have keybindings for copy and paste set in your profiles.json?

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 13, 2019
@zadjii-msft
Copy link
Member

Also, please refer to the user documentation

@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Aug 17, 2019
@ghost
Copy link

ghost commented Aug 17, 2019

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@dasMulli
Copy link

Has there been a discussion of changing the defaults to ctrl+c/ctrl+v by default similar to how the default conhost+cmd experience in windows is at the moment? (I assume there is a reason like making a lot of *nix programs hard to use?..)

@ghost ghost removed the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Aug 17, 2019
@DHowett-MSFT
Copy link
Contributor

We explicitly changed the defaults away from Ctrl+C/Ctrl+V because of that reason -- it's hard to use your shell and your CLI applications when your terminal emulator gets in the way by eating common key combos. #2446 goes a long way to fixing this, because it lets you bind Ctrl+C over copy but still send ^C to the connected application when there's no selection; there is, however, no reasonable heuristic we can use for Ctrl+V.

We're trying to make something approachable for Windows and Linux folks, but in some cases the best we can do is choose one option and make it trivially easy to change for the people who disagree.

@nabanita-sarkar
Copy link
Author

Okay

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 19, 2019
@onionhammer
Copy link

onionhammer commented Sep 11, 2019

@DHowett-MSFT What was wrong w/ how it worked in the other command prompt?

If text is selected CTRL+C copies
if text is not selected CTRL+C sends signal

@zadjii-msft
Copy link
Member

@onionhammer When that comment was authored, the Terminal had a bug where whatever keybinding you had for copy would always try to copy, even if there wasn't a selection. Now that that bug is fixed, we can think about maybe adding Ctrl+C as a default copy keybinding again.

@onionhammer
Copy link

@zadjii-msft afaict it works perfectly if I just add the key-binding in manually

@iliveforfun
Copy link

Also, please refer to the user documentation

already solve my problem but is there a strict format for the definition of such command? cuz when I type a command for copying, error always happens. Although my format looks like other comand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

6 participants