Terminal: How to copy text? Ctrl + C isn't working?

Created on 5 Jul 2019  路  22Comments  路  Source: microsoft/terminal

I installed the terminal from the windows app store, created a powershell tab, ran a command.

I then wanted to copy that command text, so I highlighted it, then pressed ctrl + c but it doesn't appear to have copied the command text. I also tried ctrl + shift + c. Getting desperate I right clicked on the tab item itself, looking for a menu where I could select "copy" but no such menu seems to exist. I also tried right clicking with the text selected hoping for a menu where I could select "copy selection" but again no such menu exists. In desperation I gave up - copying text does not appear possible. What am I doing wrong?

Issue-Docs Resolution-Duplicate

Most helpful comment

Right clicking the selected text will copy it to the clipboard.

I'd like a way to do this that uses the keyboard instead.

All 22 comments

from what I remember this function has not yet been added to the terminal2 it still implements the copy -paste protocol from cmd and PowerShell. highlight text and press to copy and to paste the clipboard #1180

Right clicking the selected text will copy it to the clipboard.

I'd like a way to do this that uses the keyboard instead.

Shoud we open a new issue requesting a feature to enable CTRL+C / CTRL+V to copy/paste?

Please don鈥檛! We鈥檒l just have to close it as a duplicate of a feature that made it into v0.3

actually Ctrl+C works fine in powershell in windows terminal, the real problem is the support to wsl, when I use wsl2 in windows terminal, for example, a ubuntu18.04, I can't use Ctrl+C or Ctrl+Shift+C, but in bash or wsl.exe, it works fine.

It would be nice to have shift+insert or Ctrl+shift+insert to have a linux like feeling or ctrl+shift+c and ctrl+shift+v like powershell does

This was fixed with #1093

I don't think this is fixed?

The changes in #1093:

I apologise if I've misread any of the code.

I've been fighting years of muscle memory this last week because ctrl+c doesn't work; I realise it may seem like a triviality, but I think it's important for user experience.

I'll reopen it for our next Triage cycle.

We'll track all copy/selection issues as part of #524

Any idea when this will be fixed?
Copying is a fairly standard function...

Also, shouldn't this be open since CTRL+C still doesn't copy?

No this should be closed, since the decided upon feature is customisable binding not hard-coded use of ctrl+c.

Customisable is great! - but what's the default setting out of the box?

The default keybindings for copy and paste are Ctrl+Shift+C/V. If your profiles.json file was created before #1093, then they won't contain that keybinding, and you'll need to add it manually.

Right clicking the selected text will copy it to the clipboard.

I'd like a way to do this that uses the keyboard instead.

get it, really cool.

This was fixed with #1093

Nope, it wasn't.

Making Ctrl+Shift+C the keybinding for copy is pointless. You may as well make it anything else Ctrl+P. People expect Ctrl+C and using anything except that will just make the copy feature undiscoverable.

I couldn't agree more with @CobusKruger.
Some things are just so common and expected, that not to use them just seems like you're actively hiding features from users.
No one expects CTRL+SHIFT+C/V, They expect CTRL+C/V; If it were otherwise, there wouldn't be so many users here clamoring for it.
CTRL+C/V is what should be in the json by default.
This is very much a case of "Old Microsoft" rearing it's head, rather then new forward looking Microsoft.
So yes, this should not be closed until this problem has actually been fixed...

This is very much a case of "Old Microsoft" rearing it's head, rather then new forward looking Microsoft.

@Panzerbjrn, please let me refresh you on the Microsoft Open Source Code of Conduct. We can disagree here and have debates, but please halt yourself before assuming the motivations of others and attacking individuals personally or their work.

We are happy to continue to discuss the way that this prerelease product should evolve before it meets v1.0 (and even after 1.0!) Please exercise patience and understanding when working with us and members of the community as the software develops.

In fact, I'd suggest that the new keybindings are very "new"-Microsoft.

Gnome Terminal has a consistent keybinding that's not intuitive at first, but easy to adopt, and not too far from the usual CTRL + C for copy.
CTRL + C : Cancel
CTRL + Shift + C : Copy
CTRL + Shift + V : Paste

This is the style of copy/paste keybindings for every other terminal on the planet, and the style we've chosen as the defaults. If you're unhappy with them, you're absolutely free to change them.

please halt yourself before assuming the motivations of others and attacking individuals personally or their work.

Please feel free to point out what I said that was even remotely an attack on anyone or an assumption of motivations?
Or did you perhaps recognise the truth of what I wrote and felt defensive?

I am so tempted to chime in with something more confrontational but I don't think it'll add to the debate so I'll just say this:

  • The devs have been very responsive, and have been accommodating of the many (often mutually conflicting) requests coming in from users. By this token the "old Microsoft" assertion seems unfounded and potentially disheartening for the people who have plowed a lot of work in to this.
  • This is a beta product, if you expect it to meet all your needs straight away you probably need to realign your expectations.
  • Some decisions will be made that won't work in your favour. Many won't work in my favour. However these are educated decisions made in the interest of supporting the average user (not just you), by talented devs who are acknowledging some compromise but are making pragmatic decisions nonetheless. By assuming your needs are paramount, you are potentially dismissing the needs of other users (e.g. WSL users like me who support the sensible decision to align with Gnome bindings and avoid escape sequence characters for default bindings).
  • This is open source. If you feel you have the expertise to override their decisions, then you are free to implement changes in your own fork. If you don't have that expertise, you can't reasonably claim that the decision taken is actually wrong. "It's not what I'm familiar with" is probably not a good enough justification (in my view).

I won't reply to responses as I know it won't add anything and that I shouldn't have even posted the above, but I couldn't resist throwing my two cents in - sorry!

Was this page helpful?
0 / 5 - 0 ratings