有没有办法设置 tmux 以便它在我切换到窗格时自动调整窗口宽度,以便它与我打开的文件中最长(在屏幕上可见)行一样宽?
我正在使用命令手动执行此操作,
:resize-pane -R 10
或者
:resize-pane -L 10
我总是必须猜测数字,当我切换到另一个窗格时,我必须再次执行此操作
请注意,此功能仅与垂直窗格相关。
似乎没有办法自动执行此操作。但是,您可以使用鼠标:
mouse-resize-pane [on | off]
If on, tmux captures the mouse and allows panes to be
resized by dragging on their borders.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2727 次 |
最近记录: |