Skip to content
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 & paste in PuTTY: long lines are splitted when pasted #778

Open
fansari opened this issue Oct 12, 2021 · 16 comments
Open

copy & paste in PuTTY: long lines are splitted when pasted #778

fansari opened this issue Oct 12, 2021 · 16 comments

Comments

@fansari
Copy link

fansari commented Oct 12, 2021

When I use zellij and the output is longer than the terminal and then do a copy & paste with the mouse the lines become splitted.

I use zellij 0.18.1. My config.yaml looks like this;

no_pane_frames: true
disable_mouse_mode: true

The scenario is like this: I use PuTTY on a Windows 10 system and SSH to a Linux VM and from there I run zellij.

When I open a PuTTY session without running zellij and do the same thing I get one single line when pasting.

@a-kenji
Copy link
Contributor

a-kenji commented Nov 14, 2021

@fansari,
Is that still an issue?

@fansari
Copy link
Author

fansari commented Nov 22, 2021

I have today tested this with 0.20.1. The issue is still there.

@a-kenji
Copy link
Contributor

a-kenji commented Nov 23, 2021

Thank you for checking!

@robdew
Copy link

robdew commented Jan 13, 2022

it's not just PuTTY. Same happens in iTerm2 on macOS

@imsnif
Copy link
Member

imsnif commented Jan 13, 2022

I think this is an issue in all terminals. Essentially what happens is that when copying in Zellij, we treat line-wraps as line-breaks. Personally I thought this was desirable, but apparently I was wrong. :)

Will try to give this a look and fix it in the near future.

@jenxie
Copy link

jenxie commented Mar 11, 2022

Is there an update to this? Noticed this as a new user of Zellij 0.25.0.

@imsnif
Copy link
Member

imsnif commented Mar 11, 2022

I think maybe @tlinford was working on this?

@tlinford
Copy link
Contributor

i missed this issue actually, as far as i can tell this is fixed since 0.25.0 (was addressed in #1069)

@tlinford
Copy link
Contributor

are you running with mouse_mode off @jenxie?

@jenxie
Copy link

jenxie commented Mar 11, 2022

@tlinford I'm using mouse_mode: true, I just noticed this happens to me in vim but not in bash :/

using mouse_mode: false it selects the pane frame too which I don't really need.

@tlinford
Copy link
Contributor

aha, next release we have this #1191 which is a pretty big step forward for proper mouse integration with vim - although I suspect we will also need to sort out #1199 to have a great out of the box experience.

@jenxie
Copy link

jenxie commented Mar 11, 2022

Gotcha, tested 0.26.0, when selecting in vim it goes into Visual Mode, so one needs to use 'y' to yank and 'p' to paste as an example. Works though :)

@tlinford
Copy link
Contributor

cool, thanks for testing :)

@fansari
Copy link
Author

fansari commented Mar 12, 2022

For me it does not work with 0.26.0. I have put a long line into a file and do a cat on this file in a Gnome terminal.
Next I copied this line with the mouse and inserted it with paste into an editor (I have tried vi and nano).

In both cases the result are two lines. To doublecheck this I have also opened a Gnome terminal without running zellij. There the result is one line.

Also tested on Windows 10 with PuTTY: same result

@tlinford
Copy link
Contributor

sorry @fansari , the comments from yesterday are a different case with mouse_mode enabled, you have it turned off right?

@fansari
Copy link
Author

fansari commented Mar 12, 2022

I have this setting for the mouse: disable_mouse_mode: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants