gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.38k stars 293 forks source link

Paste with right mouse button #2119

Open tomba opened 1 year ago

tomba commented 1 year ago

An option to allow paste from clipboard with right mouse button would be great. The context menu would still be available with the menu key (I'm not sure if they key has a proper name, it's between right windows key and right ctrl on my keyboard).

I know the middle button can be used to paste, but my mouse doesn't have a middle button. Yes, it has a wheel, which can be pressed, but the wheel is really bad as a button. To me the right button for pasting is perfect, as I really don't have any need for a context menu on a terminal, so the right button is not used for anything important.

valiko-ua commented 1 year ago

+1 Really missing it.

zkp60 commented 3 weeks ago

Really need this feature. Both Putty and Xshell have the option to paste with the right mouse button, which greatly improves efficiency. Hope the feature can be added. Thank you!

algj commented 3 weeks ago

I think I could make it. I'm thinking of making a dropdown menu:

Preferences > Global > Clipboard > Paste with mouse: [ Disabled, Right click, Control + Right click, Shift + Right click, Alt + Right click ]

Could there be a better interface for it? I prefer all other modifiers opening context menu.

This may be the place to implement it...: https://github.com/gnunn1/tilix/blob/5d16a5ffe92f4f58d3b66328674cd8f3362e13e4/source/gx/tilix/terminal/terminal.d#L1961-L1968