gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
22.12k stars 3.37k forks source link

How to enable paste from system clipboard in mouse mode (Mobaxterm) #746

Closed jiang-yuan closed 1 month ago

jiang-yuan commented 6 months ago

I am using MobaXterm and connect to SSH with tmux. After setting tmux_conf_copy_to_os_clipboard=true in .tmux.conf.local, I can copy from tmux to os clipboard. But when I try to paste from clipboard via right button of my mouse (this works in non-mouse mode as I unbind -n MouseDown3Pane), but in mosue mode it does nothing and cannot paste anything.

gpakosz commented 3 months ago

Hello @jiang-yuan 👋

If I understood correctly, you need to bind MouseDown3Pane to something like xsel -b.

gpakosz commented 3 months ago

@jiang-yuan are we good?