-
I have four different shells 1, 2, 3, and 4. Say I want to open shell n in a split with the current one, just like you can by clicking it in the drop-down list while pressing I want to add a key binding for that.
I expect that I will need to replace the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can accomplish this in a couple of ways! Here's how I'd approach it. Using indexed profilesThis way, you're at the mercy of your profile ordering. Each {
"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 Using named profilesThis one doesn't put you at the whims of the profile order. Each action contains a {
"command": {
"action": "splitPane",
"profile": "Windows PowerShell"
},
"keys": "ctrl+alt+shift+1"
},
{
"command": {
"action": "splitPane",
"profile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}" // Command Prompt
},
"keys": "ctrl+alt+shift+2"
},
// ... Using the name in this one is slightly worse because if you rename the profile we won't update it for you. It's a pain (sorry). |
Beta Was this translation helpful? Give feedback.
-
@DHowett Thanks a lot. That was easier than I thought. I put in 10 entries for indexes 0-9 like this, so that I don't have anything further to do when I move around or add more shells. I just need to remember the order, like I already do when opening then with
|
Beta Was this translation helpful? Give feedback.
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 anindex
: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: