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

Text copying not working #1033

Closed
matmoscicki opened this issue Jan 28, 2022 · 3 comments
Closed

Text copying not working #1033

matmoscicki opened this issue Jan 28, 2022 · 3 comments

Comments

@matmoscicki
Copy link

Basic information

zellij --version: zellij 0.24.0
tput lines: 65
tput cols: 207
uname -av or ver(Windows): Linux szary-VirtualBox 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

List of programs you interact with as, PROGRAM --version: output cropped meaningful, for example:
mobaXterm v21.5

Further information
Copying text does not work as I would expect. After selecting, I get a message that the text was copied, but pasting with Shift+Insert pastes me what was previously in the clipboard. ( https://gifyu.com/image/Sb1ae ).
It may be related to some mobaXterm settings, but it does not work only in Zellij (tmux has no problem).

@jaeheonji
Copy link
Member

jaeheonji commented Jan 28, 2022

Hi, @matmoscicki!

I saw the GIF you uploaded. First of all, I am not a user of mobaXterm, so this may not be the correct answer.
Maybe, this is due to the difference between the PRIMARY selection and the clipboard.

From the GIF view, it looks like you are using the copy-on-select feature in mobaXterm . And probably, the data copied through this feature goes to PRIMARY selection.

zellij has its own copy-on-select feature, which only copies data to the clipboard. (For reference, we are currently developing a function to support various clipboards. #1022)

Perhaps the data pasted through Shift+Insert in mobaXterm comes from PRIMARY selection.

EDIT: I did a search and saw an option to disable primary selection in the mobaXterm configuration. I don't know if this option is to use the system clipboard as a default instead of primary selection, but if it is correct, copy/paste will work normally in zellij.

@tlinford
Copy link
Contributor

@matmoscicki it could be that mobaXterm does not support the osc52 instruction we use by default to handle copying. This can be worked around in a couple of ways:

  • disable mouse mode completely
  • select text with shift + mouse

@a-kenji
Copy link
Contributor

a-kenji commented Feb 24, 2022

This should be addressed now.

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

No branches or pull requests

4 participants