-
Notifications
You must be signed in to change notification settings - Fork 115
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
Copying a wrapped line does not work as it should #69
Comments
This feature is closely related to general feature of "word wrap on resize". |
so, what's the recommended way of copy pasting item to avoid spurious newlines (suppose i am not resizing window). This is particularly important when i am copying/pasting commands. |
The closest thing to recommended way is to paste your lines into a text editor manually fix the lines, select and copy again. Yes I know it is not a great solution. |
Thanks, yeah, thats not very useful indeed. :-) So looking at the dev panel it appears that extraterm uses codemirror for rendering outputs - code mirror support line word wrapping natively, (https://codemirror.net/demo/indentwrap.html) So if extraterm can feed complete lines to codemirror, then the right thing should automatically happen. |
Getting codemirror to do wrapping for lines shouldn't be super hard for lines which have entered the scrollback. For lines which are still on the screen and can be modified via terminal escape codes, the situation is trickier. |
My preference is for terminal to treat long lines that wrapped over as a single line from the perspective of terminal escape codes, rather than multiple lines. E.g. term-> go to the beginning of the line should go to the real the beginning of the line (that is where it would go if terminal had infinite width), not to the same on-screen line. I believe this is also the expectation for most of applications but i could be wrong. If you are open to this, i can see if i can fix this with minimal blood though pointers are appreciated. |
I have a feeling that changing how the cursor behaves when it reaches the end of a row is a bad idea. I strongly suspect that some 'rich' terminal based UIs expect the cursor to appear on the next line. If you want to investigate this a bit more, then it makes sense to look in |
I'm having the same problem: copying/pasting long, wrapped lines ––> copying multiple lines (should be: copying as single line, unless an actual |
👍 for this. It can be pretty difficult when I want to copy output from Extraterm if it wraps. |
keep finger crossed for that improvement as its a bit annoying |
Tried in current release and continues happening. |
Please fix this. Every other terminal emulator behaves that way. |
Released in v0.45.0. |
The problem still exists when you try to copy & paste a line within extraterm 0.48.0:
Now copy & paste this command and you get
What you should get is
|
If you copy a very long line that has been wrapped over multiple lines and paste it again, it is pasted as multiple lines split where the wrapping occurred.
The text was updated successfully, but these errors were encountered: