Skip to content

How to make this keybinding to open a split with another shell type? #14056

Answered by DHowett
eggbean asked this question in Q&A
Discussion options

You must be logged in to vote

You can accomplish this in a couple of ways! Here's how I'd approach it.

Using indexed profiles

This way, you're at the mercy of your profile ordering.

Each splitPane action contains an index:

{
    "command": {
        "action": "splitPane",
        "index": 0
    },
    "keys": "ctrl+alt+shift+1"
},
// ...

If you hold down Alt while you open the Settings, you can get at the built-in actions for newTab and copy those!

Using named profiles

This one doesn't put you at the whims of the profile order. Each action contains a profile, which is either a GUID or a name:

{
    "command": {
        "action": "splitPane",
        "profile": "Windows PowerShell"
    },
    "keys": "ctrl+alt+shift+1"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by eggbean
Comment options

You must be logged in to vote
1 reply
@DHowett
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements
2 participants
Converted from issue

This discussion was converted from issue #14054 on September 21, 2022 23:39.