我想通过窗格 # 直接切换到 Tmux 中的窗格。
我怎样才能做到这一点?我知道如何在窗格之间循环,并移动到当前窗格旁边的窗格。
我希望能够运行该display-panes
命令,该命令在每个窗格上显示“窗格#”,然后使用由display-panes
.
这可能吗?
注意:为了清楚起见,我不是指窗口,而是指窗格。谢谢!
cuo*_*glm 67
您可以通过在display-panes
命令显示窗格的索引时键入窗格的索引来直接跳转到窗格。
来自man tmux
:
display-panes [-t target-client]
(alias: displayp)
Display a visible indicator of each pane shown by target-client.
See the display-panes-time, display-panes-colour, and
display-panes-active-colour session options. While the indicator
is on screen, a pane may be selected with the ‘0’ to ‘9’ keys.
Run Code Online (Sandbox Code Playgroud)
或者,您可以使用:
C-b q
Run Code Online (Sandbox Code Playgroud)
C-b
发送前缀密钥q
显示窗格索引jas*_*yan 20
Ctrlbq(tmux 默认前缀序列 plus q
)将简要显示窗格索引,如果您在显示时输入索引号,您的光标将移动到该窗格。
如果你有大量的窗格并且显示时间太短,你可以配置 tmux 以display-panes-time
在你的~/.tmux.conf
. 该值以毫秒为单位。
小智 12
当您知道目标窗格的指示符display-panes
(例如通过)时,您可以使用 直接切换到该窗格select-pane
。
从man tmux
:
select-pane [-DdegLlMmRU] [-P style] [-T title] [-t target-pane]
(alias: selectp)
Make pane target-pane the active pane in window target-window,
or set its style (with -P).
Run Code Online (Sandbox Code Playgroud)
假设您要切换到带有指示器2 的窗格,请输入:
C-b : select-pane -t 2
Run Code Online (Sandbox Code Playgroud)
或别名
C-b : selectp -t 2
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
30387 次 |
最近记录: |