tmuxinator获得layout参数

本文介绍了一种通过tmux命令来记录和复用自定义窗口布局的方法。具体操作为先手动调整窗口至理想布局状态,然后使用list-windows命令获取当前布局的详细配置,并将其保存为yaml格式。这种方法适用于需要频繁切换不同工作场景的用户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

If neither main-horizontal nor main-vertical is working for you. Then you can adjust your current layout the way you want to be and use the tmux cmd: list-windows witch will return the current layout. In Example:

list-windows returns:

1: bash [190x41] [layout c9f8,190x41,0,0[190x20,0,0,190x20,0,21{95x20,0,21,94x20,96,21}]]

Then the yaml will be:

windows:
   - editor:
       layout: c9f8,190x41,0,0[190x20,0,0,190x20,0,21{95x20,0,21,94x20,96,21}]
       panes:
         - vim
         - foo1
         - foo2

- server: rails s

意思就是,你新打开一个窗口,调节到你满意的模式,然后命令行输入

:tmux list-windows

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值