diff --git a/sh/tmux.sh b/sh/tmux.sh index a92e3d2..a99a738 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -206,53 +206,55 @@ bind-key -n M-Right next-window # ╰─────┴────────╯ # rename -bind-key C-s command-prompt 'rename-session %%' -bind-key C-w command-prompt 'rename-window %%' +bind-key C-s command-prompt { rename-session '%%' } +bind-key C-w command-prompt { rename-window '%%' } # split window bind-key h split-window -h bind-key v split-window -v -# reload configuration -bind-key r source-file ${file} \\; display-message 'source-file ${file}' - # toggle 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 bind-key M-Left swap-window -t -1 bind-key M-Right swap-window -t +1 -# ╭───────────╮ -# │ default │ -# ╭───────────┬─────────┼─────┬─────┤ -# │ -n │ F12 │ -n │ C-b │ -# ╭────────────────────────────────────┼───────────┼─────────┼─────┼─────┤ -# │ command-prompt 'rename-session %%' │ │ C-s │ │ │ -# │ command-prompt 'rename-window %%' │ │ C-w │ │ │ -# │ detach-client │ │ │ │ d │ -# │ new-session │ │ │ │ │ -# │ new-window │ F2 │ │ │ │ -# │ next-window │ M-Right │ │ │ │ -# │ previous-window │ M-Left │ │ │ │ -# │ select-pane -D │ C-S-Down │ │ │ │ -# │ select-pane -L │ C-S-Left │ │ │ │ -# │ select-pane -R │ C-S-Right │ │ │ │ -# │ select-pane -U │ C-S-Up │ │ │ │ -# │ set-option -g mouse │ │ t │ │ │ -# │ set-option -g status off │ C-F10 │ │ │ │ -# │ set-option -g status on │ C-F1 │ │ │ │ -# │ set-option -g status 2 │ C-F2 │ │ │ │ -# │ set-option -g status 3 │ C-F3 │ │ │ │ -# │ set-option -g status 4 │ C-F4 │ │ │ │ -# │ set-option -g status 5 │ C-F5 │ │ │ │ -# │ source-file │ │ r │ │ │ -# │ split-window -h │ │ h │ │ % │ -# │ split-window -v │ │ v │ │ \" │ -# │ swap-window -t -1 │ │ M-Left │ │ │ -# │ swap-window -t +1 │ │ M-Right │ │ │ -# │ switch-client -n │ M-Down │ │ │ │ -# │ switch-client -p │ M-Up │ │ │ │ -# ╰────────────────────────────────────┴───────────┴─────────┴─────┴─────╯ +# ╭─────────────╮ +# │ default │ +# ╭───────────┬─────────┼─────┬───────┤ +# │ -n │ F12 │ -n │ C-b │ +# ╭───────────────────┼───────────┼─────────┼─────┼───────┤ +# │ command-prompt │ │ │ │ : │ +# │ copy-mode │ │ │ │ PPage │ +# │ detach-client │ │ │ │ d │ +# │ new-session │ │ │ │ │ +# │ new-window │ F2 │ │ │ c │ +# │ next-window │ M-Right │ │ │ n │ +# │ previous-window │ M-Left │ │ │ p │ +# │ rename-session │ │ C-s │ │ │ +# │ rename-window │ │ C-w │ │ │ +# │ select-pane -D │ C-S-Down │ │ │ │ +# │ select-pane -L │ C-S-Left │ │ │ │ +# │ select-pane -R │ C-S-Right │ │ │ │ +# │ select-pane -U │ C-S-Up │ │ │ │ +# │ set -g mouse │ │ t │ │ │ +# │ set -g status off │ C-F10 │ │ │ │ +# │ set -g status on │ C-F1 │ │ │ │ +# │ set -g status 2 │ C-F2 │ │ │ │ +# │ set -g status 3 │ C-F3 │ │ │ │ +# │ set -g status 4 │ C-F4 │ │ │ │ +# │ set -g status 5 │ C-F5 │ │ │ │ +# │ source-file │ │ r │ │ │ +# │ split-window -h │ │ h │ │ % │ +# │ split-window -v │ │ v │ │ \" │ +# │ swap-window -t -1 │ │ M-Left │ │ │ +# │ swap-window -t +1 │ │ M-Right │ │ │ +# │ switch-client -n │ M-Down │ │ │ │ +# │ switch-client -p │ M-Up │ │ │ │ +# ╰───────────────────┴───────────┴─────────┴─────┴───────╯ " }