feat(tmux): prefix + C-x to toggle synchronize-panes

This commit is contained in:
Dict Xiong 2024-06-12 21:42:53 +08:00
parent 92aa5fa920
commit f6ab625b89

View File

@ -26,6 +26,7 @@ bind | split-window -h -c "#{pane_current_path}"
# other key bindings # other key bindings
bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
bind m run 'old=$(tmux show -gv mouse); new="off"; if [ "$old" = "off" ]; then new="on"; fi; tmux set -g mouse $new && tmux display-message toggle\ mouse\ mode\ $new' bind m run 'old=$(tmux show -gv mouse); new="off"; if [ "$old" = "off" ]; then new="on"; fi; tmux set -g mouse $new && tmux display-message toggle\ mouse\ mode\ $new'
bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# styles # styles
# status bar # status bar