gpakosz / .tmux

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

How to copy text without exiting copy mode #704

Closed owenstake closed 8 months ago

owenstake commented 9 months ago

tmux - Copy text without exiting copy mode - Super User

Is there a advanced solution in oh-my-tmux?

gpakosz commented 8 months ago

Hello @owenstake 👋

You can edit your .local customization file and use non cancelling bindings.

For a list of default tmux bindings, you can use

$ tmux -f /dev/null -L test lsk | grep and-cancel

For Oh my tmux! specifically, you can use

bind -T copy-mode-vi y send -X copy-selection

Keep in mind that Oh my tmux! updates bindings on the fly depending on the value of tmux_conf_copy_to_os_clipboard