Bre*_*ete 7 terminal windows-terminal
我想创建一个操作或一个新配置文件,以在 2x2 布局中打开 4 个新选项卡。但我对此有几个问题:
我的个人资料不会与终端一起打开,但总是在新窗口中打开。
我无法让它渲染 2x2 网格,而是渲染 1x2 网格,并在最后一个图块中出现另一个中断。
这是我创建的个人资料。我已经尝试使用相同的命令行来newTab
执行类似的结果。
{
"guid": "{00000000-0000-0000-0000-000000000005}",
"name": "myProfile",
"commandline": "wt new-tab -p \"Foo\" ;
split-pane -H -p \"Bar\" ;
split-pane -V -p \"Baz\" ;
split-pane -H -p \"Git Bash\" -d \"C:\\foo\""
}
Run Code Online (Sandbox Code Playgroud)
为了更好的可读性,我在上面的代码中添加了换行符。它们不在我的配置中
更新1:
我能够使用该move-focus
命令解决 2x2 窗格布局的问题。我认为这只是 atm 的预览功能。
{
"guid": "{00000000-0000-0000-0000-000000000005}",
"name": "myProfile",
"commandline": "wt new-tab -p \"Foo\" ;
split-pane -V -p \"Bar\" ;
move-focus left ;
split-pane -H -p \"Baz\" ;
move-focus up ;
move-focus right ;
split-pane -H -p \"Git Bash\" -d \"C:\\foo\""
}
Run Code Online (Sandbox Code Playgroud)
小智 5
这是同一窗口中的 4x4 配置文件:
{
"commandline": "wt -w 0 new-tab -p \"Foo\" ; split-pane -V -p \"Bar\" ; move-focus left ; split-pane -H -p \"Baz\" ; move-focus up ; move-focus right ; split-pane -H -p \"Git Bash\" -d \"C:\\git\"",
"guid": "{e4554b48-406d-4615-98a0-fadd035e6cac}",
"hidden": false,
"name": "4x4"
}
Run Code Online (Sandbox Code Playgroud)