4

I had my terminal set up with two panes. Like this:

[A|B]

I accidentally Ctrl+C'd a process running in the pane to the left, which results in the pane getting closed. When I split again, my new pane comes to the right. So that my setup becomes:

[B|A]

Is there anyway to restore the setup I had initially without cancelling the process running in B?

4

1 回答 1

1

当你问的时候,这是不可能的。

但是,对于 Windows Terminal 1.12,这可以通过swapPane操作来实现。有关更多详细信息,请参阅:https ://docs.microsoft.com/en-us/windows/terminal/panes#swapping-panes-preview

这些操作的语法是:

{ "command": { "action": "swapPane", "direction": "down" } },
{ "command": { "action": "swapPane", "direction": "left" } },
{ "command": { "action": "swapPane", "direction": "right" } },
{ "command": { "action": "swapPane", "direction": "up" } },
{ "command": { "action": "swapPane", "direction": "previous" } },
{ "command": { "action": "swapPane", "direction": "previousInOrder" } },
{ "command": { "action": "swapPane", "direction": "nextInOrder" } }

但它们也应该默认绑定在Command Palette中,名称为“Swap Pane...”

于 2021-11-23T15:19:18.660 回答