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 paste with multiple lines doesnt skip spaces and insert new line at the end of each line #2839

Closed
bruceljyang opened this issue Sep 21, 2019 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@bruceljyang
Copy link

bruceljyang commented Sep 21, 2019

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.295]
Windows Terminal version (if applicable): Version: 0.4.2382.0

Any other software?

Steps to reproduce

say we have
"
Line 1
Line 2
Line 3
"
on screen.
use Mouse to select multiple lines in the windows terminal and right click (or ctrl + c). Then paste it into either a text editor such as sublime in windows or paste back into the terminal using right click again.

all the lines become one line with lots of spaces adding in between. such as
"Line 1 SPACE SPACE SPACE SPACE SPACE SPACE Line 2 SPACE SPACE SPACE SPACE SPACE SPACE SPACE SPACE SPACE Line 3 "

Expected behavior

The right output should be
"
Line 1\newline
Line 2\newline
Line 3\newline
"

This makes it really really hard to use windows terminal, since we do need to copy and paste multiple lines a lot. Say people ask you send them your stuffs in some linux env, you open the file, then you want to just be able to select lines and copy them, then paste into an email/chat app in windows. Now, all lines are becoming just one line, which is bad..

Actual behavior

all the lines become one line with lots of spaces adding in between. such as
"Line 1 SPACE SPACE SPACE SPACE SPACE SPACE Line 2 SPACE SPACE SPACE SPACE SPACE SPACE SPACE SPACE SPACE Line 3 "

@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 Sep 21, 2019
@DHowett-MSFT
Copy link
Contributor

/dup #2275

@ghost
Copy link

ghost commented Sep 23, 2019

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 ghost closed this as completed Sep 23, 2019
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed 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 Sep 23, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants