tmux/sync-panes,mouse

This commit is contained in:
Marc Beninca 2025-07-19 18:36:06 +02:00
parent 3dcf14c3a6
commit 3aab8538a2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -350,15 +350,21 @@ bind-key v split-window -c '#{pane_current_path}' -v
bind-key k kill-server bind-key k kill-server
# reload configuration # 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 # 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 # swap window
bind-key M-Left swap-window -t -1 bind-key M-Left swap-window -t -1
bind-key M-Right 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 │ # │ default │
# ╭───────────┬─────────┼─────┬───────┤ # ╭───────────┬─────────┼─────┬───────┤
@ -379,7 +385,7 @@ bind-key M-Right swap-window -t +1
# │ select-pane -L │ C-S-Left │ │ │ │ # │ select-pane -L │ C-S-Left │ │ │ │
# │ select-pane -R │ C-S-Right │ │ │ │ # │ select-pane -R │ C-S-Right │ │ │ │
# │ select-pane -U │ C-S-Up │ │ │ │ # │ select-pane -U │ C-S-Up │ │ │ │
# │ set -g mouse │ │ t │ │ │ # │ set -g mouse │ │ M │ │ │
# │ set -g status off │ C-F6 │ │ │ │ # │ set -g status off │ C-F6 │ │ │ │
# │ set -g status on │ C-F1 │ │ │ │ # │ set -g status on │ C-F1 │ │ │ │
# │ set -g status 2 │ C-F2 │ │ │ │ # │ set -g status 2 │ C-F2 │ │ │ │
@ -393,6 +399,7 @@ bind-key M-Right swap-window -t +1
# │ swap-window -t +1 │ │ M-Right │ │ │ # │ swap-window -t +1 │ │ M-Right │ │ │
# │ switch-client -n │ M-Down │ │ │ │ # │ switch-client -n │ M-Down │ │ │ │
# │ switch-client -p │ M-Up │ │ │ │ # │ switch-client -p │ M-Up │ │ │ │
# │ synchronize-panes │ │ S │ │ │
# ╰───────────────────┴───────────┴─────────┴─────┴───────╯ # ╰───────────────────┴───────────┴─────────┴─────┴───────╯
" "
} }