小智 8
在窗格3退出后将窗格4更改为窗格3:
C-b { move the current pane to the previous position
Run Code Online (Sandbox Code Playgroud)
以下是用于移动窗格的更多快捷方式:
C-b } move the current pane to the next position
C-b C-o rotate window ‘up’ (i.e. move all panes)
C-b M-o rotate window ‘down’
C-b ! move the current pane into a new separate
window (‘break pane’)
C-b :move-pane -t :3.2
split window 3's pane 2 and move the current pane there
Run Code Online (Sandbox Code Playgroud)
资料来源:tmux速查表
您可能需要考虑使用布局和rotate-window
. 例如,如果您正在使用main-vertical
布局并关闭“主”窗口,则:
C-b M-4
。C-b C-o
或C-b M-o
),直到所需的窗口成为主窗口。您可能还想将前缀更改为较短的版本。我喜欢反勾号,所以我的tmux.conf
文件中有这个:
unbind-key C-b
set-option -g prefix `
bind-key ` send-prefix
Run Code Online (Sandbox Code Playgroud)
并可C-o
重复M-o
添加:
bind-key -r C-o rotate-window -U
bind-key -r M-o rotate-window -D
Run Code Online (Sandbox Code Playgroud)