Copy and Paste behaviour under Linux
Description
Background
You might be aware that Linux famously has two copy and paste buffers. It's a bit annoying but generally speaking I'm used to it.
I can paste into my terminal using my mouse in one of two ways;
- I can middle click and paste automatically happens (call this buffer 1)
- I can right click and select paste from the menu (call this buffer 2)
As you can see each of these two ways uses a different buffer.
First issue
Because OpenCode does something to disable my right click menu; I am unable to paste from buffer 2 into OpenCode.
It's a bit annoying. I've found myself having to paste things into a GUI text editor from buffer 2, then copy them into buffer 1 so I can middle click paste them into opencode. It's a lot of extra clicks just to copy and paste.
Second issue
When highlight text, it is automatically copied to my clipboard.
Linux already has this feature built in.. By default when I highlight things in my terminal they are automatically copied in to buffer 1.
Open Code actually copies the text into buffer 2. On the face of it, it's not a big issue because every other app lets me paste from either buffer.
However when I want to copy from OpenCode and then paste back into OpenCode, because I'm trying to repeat back a small bit of text ... I can't, because the copy goes into buffer 2, and I'm only able to paste from buffer 1.
Suggested Fix
I wonder if perhaps we could not disable the right click menu? Or perhaps there could be an option to disable the mouse integration? I never use that anyway.
Alternatively; change how the copy and paste works. I don't know enough to make suggestions around that however.
OpenCode version
v0.1.50 (currently the latest)
Terminal
Tillix and tmux