!tmux@programming.dev
!tmux
@programming.devI've been using screen for a while, and the copy/pasting just behaved like being in a regular terminal window (Debian), as in Ctrl+Shift+c to copy.
I made the switch to Tmux a couple months ago and never looked back. The only gripe I've been having is copying text selections. I simply don't know how to make it work. There's are some shenanigans to enable copying, but somehow never got it to work, so I always end up detaching from the session, and then do the copying, then re-attach the session.
Is there any way to make the copying work just like in a regular terminal window (Ctrl+Shift+c)?
https://howarddo2208.github.io/posts/04-fzf-tmux-session-manager/
Today I wrote a script to quickly search, delete and add new tmux session with the power of fzf. The script The --bind flag of fzf took me quite some time to debug because of many escape backslashes I needed to add. #!/bin/bash # ~/.local/bin/tmux-session-manager FIND_DEFAULT_COMMAND="tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\"" tmux list-sessions | sed -E 's/:.*$//' | grep -v "^$(tmux display-message -p '#S')$"\ | fzf --reverse --bind "ctrl-x:execute(tmux kill-session -t {})+reload(${FIND_DEFAULT_COMMAND})"\ --bind "ctrl-n:execute(bash -c 'read -p \"Name: \" name; tmux new -d -s \"\$name\"')+reload(${FIND_DEFAULT_COMMAND})" \ --bind "ctrl-r:reload(${FIND_DEFAULT_COMMAND})"\ --header 'Enter: switch session | Ctrl-X: kill session | Ctrl-N: new session | Ctrl-R: refresh list'\ | xargs tmux switch-client -t And I bind it into s key to overwrite the default tmux behavior.
Welcome to Tmux community, let's share your configs, seek technical help and have some discussions.