gpakosz / .tmux

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

Copy text in mouse mode #649

Closed BloodhoundAllfather closed 1 year ago

BloodhoundAllfather commented 1 year ago

Hello, First of all, I'm new to tmux. Sorry for my noob question. I have Kali with xsel and xclip installed. When I'm in mouse mode, how can I copy a text? Thank you

gpakosz commented 1 year ago

Hello @BloodhoundAllfather 👋

Did you set

tmux_conf_copy_to_os_clipboard=true

In your .local customization file copy?

When you're in mouse mode, selecting text should automatically send the content to the host clipboard.

If that doesn't work, please paste here the output of

$ tmux lsk | grep MouseDragEnd1Pane
BloodhoundAllfather commented 1 year ago

@gpakosz Hello, Thank you for answering. It worked. Although it jumps to bottom, but copy works. Thank you very much

Edit: For others: edit .tmux.config.local file -> change tmux_conf_copy_to_os_clipboard to true and install the app that says in the comment:

# on macOS, this requires installing reattach-to-user-namespace, see README.md
# on Linux, this requires xsel, xclip or wl-copy