helix icon indicating copy to clipboard operation
helix copied to clipboard

Helix editor ignores standard Linux mouse click paste of text

Open mbratch opened this issue 2 years ago • 4 comments

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 avatar Oct 28 '22 23:10 mbratch

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)

the-mikedavis avatar Oct 29 '22 14:10 the-mikedavis

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.

mbratch avatar Oct 29 '22 17:10 mbratch

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

the-mikedavis avatar Oct 29 '22 17:10 the-mikedavis

#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)

the-mikedavis avatar Nov 02 '22 01:11 the-mikedavis

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

pascalkuthe avatar Jan 18 '23 12:01 pascalkuthe