15 ms·
I have my tmux set up as you describe, it's easy to do. In newer versions of tmux, you just add 'set -g mouse on' to your ~/.tmux.conf. I also have copy mode s
by rhinoceraptor 11y ago
I have my tmux set up as you describe, it's easy to do.
In newer versions of tmux, you just add 'set -g mouse on' to your ~/.tmux.conf. I also have copy mode set to use vi keybindings, and I can yank to the system clipboard.
- vbezhenar 11y agoThanks, I'll look into it.
- rhinoceraptor 11y agoHere's my ~/.tmux.conf if you're interested: https://github.com/rhinoceraptor/dotfiles/blob/master/tmux/.tmux.conf https://github.com/rhinoceraptor/dotfiles/blob/master/tmux/....
- guiambros 11y ago+1. Scrollback used to be one of my gripes as well, but it now works well under tmux. I like to have a single key binding to toggle mouse on/off, so I found a clever (although hacky) way reading someone's .tmux.conf, and have used it ever since: # toggle mouse bind m run "cut -c3- ~/.tmux.conf | sh -s toggle_mouse" # toggle_mouse() { # old=$(tmux show -g -w | grep mode-mouse | cut -d' ' -f2) # new="" # # if [ "$old" = "on" ] ; then # new="off" # else # new="on" # fi # # tmux set -g mode-mouse $new \;\ # set -g mouse-resize-pane $new \;\ # set -g mouse-select-pane $new \;\ # set -g mouse-select-window $new \;\ # display "mouse: $new" # }
- elliotec 11y agoIt doesn't seem to be as simple for cross platform support, I have had to use different settings for Linux and OSX
- tomsthumb 11y agoCare to share those settings?
- deleted 11y ago[deleted]