Pasting Still Badly Broken From Windows to Ubuntu: Extra Line Endings and Indents #4915
Labels
Area-Input
Related to input processing (key presses, mouse, etc.)
Area-TerminalControl
Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Product-Conpty
For console issues specifically related to conpty
Resolution-Duplicate
There's another issue on the tracker that's pretty much the same thing.
Environment
Steps to reproduce
Create a few lines of code in a text editor, such as Sublime or Notepad, and COPY it:

Result of pasting into a Terminal with an

ipython
shell open:** NOTE THE EXTRA LINE FEEDS AND INDENTATION! **
Result of pasting into a Terminal with

vi
open:** NOTE THE EXTRA LINE FEEDS AND INDENTATION! **
Result of pasting the same text buffer into PuTTY with an

ipython
shell open:** It looks perfect! Beautiful! **
Result of pasting the same text buffer into PuTTY with the

vi
editor open:** It looks perfect! Beautiful! **
The same behavior happens with
emacs
,pico
,vim
- not justvi
andipython
.Expected behavior
For the copied buffer to properly paste, like it does in PuTTY, without extra line endings and indents.
Please note that the same text buffer pasted into a PowerShell window works:

Actual behavior
See the above screenshots. I end up having to paste code from scratch text editors on Windows into Windows Terminal Preview line-by-line. This gets very old, very fast!
Thanks for your efforts, this is shaping up to be a great product. This is my one, huge, major pain point.
The text was updated successfully, but these errors were encountered: