logoalt Hacker News

stefanhatoday at 12:58 AM4 repliesview on HN

In Linux (Wayland) you can copy text from the terminal without pressing Ctrl+C at all. Just select the text. To paste it in another Window, press the middle mouse button.

This is called the Primary Selection and is separate from the Clipboard (Ctrl+C/Ctrl+V). IMO the Primary Selection is more convenient than the Clipboard.


Replies

DaSHackatoday at 4:22 AM

Isn't this an X11-ism? I dont believe this is Wayland-specific

pmontratoday at 6:29 AM

That's an X11 thing that Wayland had to reimplement because it's so convenient. The problem is when pasting into the terminal something that another program copied into the clipboard. That's ctrl-shift-c.

I thought about remapping copy and paste to their own keys, possibly a single one. Maybe on the number pad, which I never use. Or remapping ctrl-c.

show 1 reply
j1elotoday at 1:05 AM

Yeah I know. I missed this for the first couple days, but didn't take much before forgetting it after the change to Windows. (anyway I keep using Linux at home)

lelandbateytoday at 6:26 AM

This is also a thing in X, not only Wayland.