-
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
Copy and paste in bash generates one single line #2324
Comments
Just to clarify, this happens when copying lines from within a file in vi to the very same file in vi. If I copy text lines from outside (let's say, Visual Code) to vi, then this is what happens:
I get a jump line in between every line that I am copying. |
So, clipboard keybindings copy/paste came in with PR #1093. There's two copy actions Given this information...
Let me know below. Thanks! |
I tried copying with and without shift by using the mouse: same result. This basically renders useless editing text within the terminal in any Linux system : / Also, copying several lines from outside the terminal creates a jump line in between every line you copy (and it doesn't matter if you use CRLF or only LF). |
I'm having a simular issue, but instead of that everything gets pasted into a single line.. when i paste i get after every line, an extra new line... After i copy from a file/site or notepad etc. into the terminal with the Ubuntu app configured, i get an extra new line between every line. When i open the Ubuntu app self, i can paste without any extra new lines. -- same issue as havidarou. and same result with: |
Hi, I also mentioned that
|
I am seeing this is not just related to bash. Within Powershell 5, powershell core 6 and 7 running in windows terminal, I am getting very inconsistent copy/paste behavior. Extra whitespace, and missing line endings. The whitespace and (missing)line endings are in different places if i resize the terminal window and re-generate the output and copy/paste once again. Sometimes all lines of output might be pasted as 1 single line, other times, it may paste 6 lines correctly before it begins to start missing line endings, and running lines together Reproduced by copying any multi-line output from terminal and pasting it into Notepad++ or vscode |
Can confirm this behaviour. |
Also can confirm this behavior. It is very inconsistent with utilities like vi. Pasting into nano via the terminal seems to yield better results than vi. Switched over to a raw Powershell console and vi copy and paste works just fine. |
This is the single most frustrating thing about Terminal that makes it mostly unusable. I can live with the little UI glitches, but this is pure frustration. |
I am also facing the same issues as reported above in thread. I am primarily using powershell core 6 as primary profile in terminal . This inconsistent behaviour renders windows terminal useless for sysadmins. This is one tool which has huge potential as it gives you option for multiple tabs. |
This is still happening in 0.5. |
/dup #1091 |
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! |
Environment
Steps to reproduce
Copy several text lines and paste them using vi text editor in bash (WSL).
Expected behavior
Properly copied lines within the text editor.
Actual behavior
A single line is generated with spaces so that it looks like they are different lines.
The text was updated successfully, but these errors were encountered: