Pasting into terminal causes carriage return

When pasting into the PyCharm terminal, there is a carriage return automatically added. THIS IS VERY BAD. If I'm pasting strings as part of commands but need to add flags, then it can cause great damage to my git branches and source control. 

How can I make this optional?

I'm on a Mac.

7 comments
Comment actions Permalink

Hi, I couldn't reproduce this behavior (no new line after pasting). Do you get this issue regardless of what you paste? Also, is the behavior different in system terminal?

0
Comment actions Permalink

It seems to be only git commands and only in one scenario based on how I copy the string. If I copy the text right to left in TextEdit and then paste, then it doesn't happen.  If I copy the text left to right (even stopping at the last character) then the carriage return happens.

0
Comment actions Permalink

Does it behave the same way in your system terminal? I mean outside of PyCharm? 

0
Comment actions Permalink

No, there is no carriage return in the Mac terminal

 

0
Comment actions Permalink

Carriage return is usually added when doing a multi-line paste. Some editors make it easy to accidentally capture the start of a second line in a selection without noticing. I don't know if that is what happening in your case, since you're saying that the issue is not reproduced in other terminals, only in PyCharm.

Can you record a short video/gif demonstrating the issue?

0
Comment actions Permalink

Hi, I am experiencing the same problem, in that exactly what you mentioned is happening Andrey.

I have multiple lines of code that I want to paste into my terminal, but after each line it treats it as a return. This is annoying as I am running a python repl in my terminal and I would like it to be able to paste a function instead of writing it out. See attached gif

 

 The same issue is there with the IntelliJ terminal, so I'm thinking it has something to do with how the integrated terminal is setup.

0

Please sign in to leave a comment.