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

Helix editor ignores standard Linux mouse click paste of text #4511

Closed
mbratch opened this issue Oct 28, 2022 · 5 comments
Closed

Helix editor ignores standard Linux mouse click paste of text #4511

mbratch opened this issue Oct 28, 2022 · 5 comments
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug

Comments

@mbratch
Copy link

mbratch commented Oct 28, 2022

Summary

All other programs under Linux seem to understand that if I copy text from one application or window, I can paste it in another with a simple mouse click. I thought this was basically a standard under Linux (at least it's worked this way for the many years and many versions of Linux I've used).

Helix is different. When I select text it doesn't automatically copy as it does in any other program (such as vim or a basic text editor or a browser), and when I try to paste from another app using a mouse click while in insert mode in helix, it ignores it.

How can I get this to work in helix? I did do some research and installed xclip, but I'm not sure how to engage it. There are some commands in helix in command mode for pasting from the clipboard but these don't do anything.

Thank you, and apologies for the basic issue. I'm sure it's pilot error on my part.

Reproduction Steps

No response

Helix log

No response

Platform

Linux

Terminal Emulator

putty

Helix Version

22.08.1

@mbratch mbratch added the C-bug Category: This is a bug label Oct 28, 2022
@the-mikedavis
Copy link
Member

What does hx --health | head say for the "Clipboard provider"?

Selecting text with the mouse should automatically copy it. If you're using X then xsel or xclip should work as clipboard providers but if you're using Wayland then you'll need wl-clipboard (wl-copy/wl-paste)

@mbratch
Copy link
Author

mbratch commented Oct 29, 2022

What does hx --health | head say for the "Clipboard provider"?

Selecting text with the mouse should automatically copy it. If you're using X then xsel or xclip should work as clipboard providers but if you're using Wayland then you'll need wl-clipboard (wl-copy/wl-paste)

Hm. It says there isn't a clipboard provider installed but I do have xclip installed and it's in my path. I don't know if I am using Wayland. I generally just remote to my machine with putty (ssh). All of the other programs, including vim, seem to understand the basic copy/paste rules except helix.

I installed wp-clipboard but it still says there's no provider installed.

@the-mikedavis
Copy link
Member

Ah, if it's over an ssh connection, this may need OSC52 in order to be supported. #3220

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Nov 1, 2022
@the-mikedavis
Copy link
Member

#3220 was just merged so this should be working now if your terminal supports OSC52 (I think putty does but I haven't tried it)

@pascalkuthe
Copy link
Member

This should have been fixed by #3220 so I am closing this issue.
If the problem persists feel free to reopen this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

4 participants