randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.38k stars 84 forks source link

Enable middle mouse button paste for Linux #292

Closed t-bltg closed 2 years ago

t-bltg commented 3 years ago

Enable middle mouse button pasting selections from other opened views into an opened terminal.

It has been bothering me for a while, on Linux we often use middle paste to quickly copy/paste some code from other views. This PR seems to fix the issue reported here: https://stackoverflow.com/questions/65246456/middle-click-is-not-pasting-the-text-in-terminus-sublime-text-3

This PR allows:

Linked issue: https://github.com/randy3k/Terminus/issues/158

Result: 1. typing OK, 2: middle paste OK: out

t-bltg commented 3 years ago

@randy3k I've minimized the changes, and the current solution works on my side, even with a lot of output in the terminal. Furthermore, is does not affect Win / Mac users.

Does it seem acceptable to merge this ?

randy3k commented 2 years ago

Sorry for the late reply. LGTM. It is sad that I don't even have a mouse to test it.

t-bltg commented 2 years ago

Thanks :+1:

randy3k commented 2 years ago

I have just ordered a mouse from Amazon. I really want to test it first before making a release.