In tmux can I resize a pane to an absolute value

岁酱吖の 提交于 2019-12-31 07:57:05

问题


Is it possible to tell tmux to "resize a pane to 5 lines high"?

I know I can do resize-pane -U 3 to move the dividing line, but sometimes when logging in with a different size monitor the size has changed by a lot of lines that I can't judge by eye. I'd like to be able to have one command that will change one window to exactly the right number of lines rather than faffing about with multiple resize-pane commands.


回答1:


usage: resize-pane [-DLRUZ] [-x width] [-y height] [-t target-pane] [adjustment]

ie.

resize-pane -t 1 -y 5




回答2:


What about Ctrl-B then (pressing Ctrl) + arrow?

If in tmux < 1.8, doing this by Ctrl-B then (Esc + arrow) * n, where n is the number of times you want to resize.




回答3:


In tmux 1.8, the size of the panes may be adjusted interactively. Under the default key bindings this may be done by the prefix key (C-b) followed by the meta key combined with arrow keys (M-arrow), where arrow is one of the up/down/left/right arrow keys.

E.g. Ctrl-b followed by Alt-Up will adjust the size upwards.

Note that the Alt key may be held down while the up/down/left/right keys are pressed multiple times to make multiple adjustments.

E.g. Ctrl-b followed by Alt-Up-Up-Left will adjust the size upwards by two movements and left by one movement.




回答4:


while pressing your bind key dont release your fingers and user the narrwors U D L R to resize your pan. BindKey + R to resize to the right side.



来源:https://stackoverflow.com/questions/16145078/in-tmux-can-i-resize-a-pane-to-an-absolute-value

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!