CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

When you paste multiline text, it's omit new lines at all.

Open n0isy opened this issue 1 year ago • 2 comments

What happened?

Copy text from code window:

a
b
c

Paste it in CodeGPT chat window:

a b c

изображение

Relevant log output or stack trace

No response

Steps to reproduce

No response

CodeGPT version

2.8.5-241.1

Operating System

Windows

n0isy avatar Jul 28 '24 21:07 n0isy

Any updates?

n0isy avatar Aug 13 '24 23:08 n0isy

Thanks for reporting! I'll try to fix it in the next release.

carlrobertoh avatar Aug 13 '24 23:08 carlrobertoh

Weird... with the native Java Swing JTextPane component (which CodeGPT is using), the PasteAction events are never triggered and I can't seem to figure out why either. Anyhow, after some burned hours, I decided to replace the underlying UI component with IntelliJ's EditorTextField one, which should give you the same experience as you would use an editor to write a .txt file.

Looks good so far, I'll try to make it available sometime next week.

https://github.com/user-attachments/assets/21845501-7b2d-49ee-9936-4a64bfe1d1b5

carlrobertoh avatar Aug 16 '24 09:08 carlrobertoh