diff --git a/sh/tmux.sh b/sh/tmux.sh index 8f3b98c..30370ea 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -350,15 +350,21 @@ bind-key v split-window -c '#{pane_current_path}' -v bind-key k kill-server # reload configuration -bind-key r source-file ${file} \\; display-message 'source-file ${file}' +bind-key r source-file ${file} \ +\\; display-message 'source-file ${file}' # toggle mouse -bind-key t set-option -g mouse \\; display-message 'mouse = #{mouse}' +bind-key M set-option -g mouse \ +\\; display-message 'mouse = #{mouse}' # swap window bind-key M-Left swap-window -t -1 bind-key M-Right swap-window -t +1 +# synchronize panes +bind-key S set-window-option synchronize-panes \ +\\; display-message 'sync = #{synchronize-panes}' + # ╭─────────────╮ # │ default │ # ╭───────────┬─────────┼─────┬───────┤ @@ -379,7 +385,7 @@ bind-key M-Right swap-window -t +1 # │ select-pane -L │ C-S-Left │ │ │ │ # │ select-pane -R │ C-S-Right │ │ │ │ # │ select-pane -U │ C-S-Up │ │ │ │ -# │ set -g mouse │ │ t │ │ │ +# │ set -g mouse │ │ M │ │ │ # │ set -g status off │ C-F6 │ │ │ │ # │ set -g status on │ C-F1 │ │ │ │ # │ set -g status 2 │ C-F2 │ │ │ │ @@ -393,6 +399,7 @@ bind-key M-Right swap-window -t +1 # │ swap-window -t +1 │ │ M-Right │ │ │ # │ switch-client -n │ M-Down │ │ │ │ # │ switch-client -p │ M-Up │ │ │ │ +# │ synchronize-panes │ │ S │ │ │ # ╰───────────────────┴───────────┴─────────┴─────┴───────╯ " }