tmux/shrink

This commit is contained in:
Marc Beninca 2025-01-23 14:41:58 +01:00
parent 1dc78a4842
commit 6d78413418
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -206,46 +206,48 @@ bind-key -n M-Right next-window
# ╰─────┴────────╯ # ╰─────┴────────╯
# rename # rename
bind-key C-s command-prompt 'rename-session %%' bind-key C-s command-prompt { rename-session '%%' }
bind-key C-w command-prompt 'rename-window %%' bind-key C-w command-prompt { rename-window '%%' }
# split window # split window
bind-key h split-window -h bind-key h split-window -h
bind-key v split-window -v bind-key v split-window -v
# reload configuration
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 t set-option -g mouse \\; display-message 'mouse = #{mouse}'
# reload configuration
bind-key r source-file ${file} \\; display-message 'source-file ${file}'
# 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
# ╭───────────╮ # ─────────────╮
# │ default │ # │ default │
# ╭───────────┬─────────┼─────┬─────┤ # ╭───────────┬─────────┼─────┬───────
# │ -n │ F12 │ -n │ C-b │ # │ -n │ F12 │ -n │ C-b │
# ╭────────────────────────────────────┼───────────┼─────────┼─────┼─────┤ # ╭───────────────────┼───────────┼─────────┼─────┼───────
# │ command-prompt 'rename-session %%' │ │ C-s │ │ # │ command-prompt │ │ │ │ :
# │ command-prompt 'rename-window %%' │ │ C-w │ │ # │ copy-mode │ │ │ │ PPage
# │ detach-client │ │ │ │ d │ # │ detach-client │ │ │ │ d │
# │ new-session │ │ │ │ │ # │ new-session │ │ │ │ │
# │ new-window │ F2 │ │ │ │ # │ new-window │ F2 │ │ │ c │
# │ next-window │ M-Right │ │ │ │ # │ next-window │ M-Right │ │ │ n │
# │ previous-window │ M-Left │ │ │ │ # │ previous-window │ M-Left │ │ │ p │
# │ rename-session │ │ C-s │ │ │
# │ rename-window │ │ C-w │ │ │
# │ select-pane -D │ C-S-Down │ │ │ │ # │ select-pane -D │ C-S-Down │ │ │ │
# │ 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-option -g mouse │ │ t │ │ │ # │ set -g mouse │ │ t │ │
# │ set-option -g status off │ C-F10 │ │ │ │ # │ set -g status off │ C-F10 │ │ │
# │ set-option -g status on │ C-F1 │ │ │ │ # │ set -g status on │ C-F1 │ │ │
# │ set-option -g status 2 │ C-F2 │ │ │ │ # │ set -g status 2 │ C-F2 │ │ │
# │ set-option -g status 3 │ C-F3 │ │ │ │ # │ set -g status 3 │ C-F3 │ │ │
# │ set-option -g status 4 │ C-F4 │ │ │ │ # │ set -g status 4 │ C-F4 │ │ │
# │ set-option -g status 5 │ C-F5 │ │ │ │ # │ set -g status 5 │ C-F5 │ │ │
# │ source-file │ │ r │ │ │ # │ source-file │ │ r │ │ │
# │ split-window -h │ │ h │ │ % │ # │ split-window -h │ │ h │ │ % │
# │ split-window -v │ │ v │ │ \" │ # │ split-window -v │ │ v │ │ \" │
@ -253,6 +255,6 @@ 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 │ │ │ │
# ╰────────────────────────────────────┴───────────┴─────────┴─────┴─────╯ # ╰───────────────────┴───────────┴─────────┴─────┴───────
" "
} }