Closed
Description
You can only open a pane with the default profile
I left space for adding support for opening a specific pane, but it didn't really seem like there was a good keychord for doing this currently. Maybe if we added support for multi-key keychords, then it'd make more sense.
EDIT:
With #3391 merged, this is pretty possible now.
I'd really like for this to work like the following:
{ "command": "splitHorizontal", "keys": [ "alt+shift+-" ] },
{ "command": "splitVertical", "keys": [ "alt+shift+plus" ] },
{ "keys": [ "alt+1" ], "command": { "action": "split", "style": "horizontal" } },
{ "keys": [ "alt+2" ], "command": { "action": "split", "style": "vertical", "profile": "{some-guid}" } },
{ "keys": [ "alt+3" ], "command": { "action": "split", "style": "horizontal", "type": "duplicate" } },
{ "keys": [ "alt+4" ], "command": { "action": "split", "style": "vertical", "type": "prompt" } },
The first two entries are the legacy style keybindings for panes.
The next four represent 4 different ways of opening a new pane:
- alt+1: Open a new pane with the default profile. This is the current behavior.
- alt+2: Open a new pane with the profile with guid "{some-guid}". (this issue)
- alt+3: Open a new pane with the same profile as the currently focused pane. (this is tacked in Allow the user's "open pane" bindings to open a pane with the current pane #1756)
- alt+4: Open a new pane by prompting the user first. (this is tacked in Open a new pane by prompting the user for which profile to use #3586)
This issue will track just that second option.