Force splitPane to use the same shell #10830

Closed
opened 2026-01-31 02:31:30 +00:00 by claunia · 4 comments
Owner

Originally created by @dabljues on GitHub (Sep 29, 2020).

Hi.

So I have a few profiles defined, I mainly use Windows plain cmd and Ubuntu from WSL. Sometimes I want to split my tab using splitPane. Which is great, but splitPane defaults to the default profile. I can fix this by specifying the profile field in splitPane configuration in my keybindings sections, but then it's fixed for all the tabs.

What I want to achieve is: when I split the pane of plain cmd I want the newly created pane to be a cmd. But when I split the pane in Ubuntu tab I want the newly created pane to be Ubuntu.

Is there a way to configure something like that via the settings.json?

Thanks in advance.

Originally created by @dabljues on GitHub (Sep 29, 2020). Hi. So I have a few profiles defined, I mainly use Windows plain cmd and Ubuntu from WSL. Sometimes I want to split my tab using `splitPane`. Which is great, but `splitPane` defaults to the default profile. I can fix this by specifying the `profile` field in `splitPane` configuration in my `keybindings` sections, but then it's fixed for all the tabs. What I want to achieve is: when I split the pane of plain `cmd` I want the newly created pane to be a `cmd`. But when I split the pane in Ubuntu tab I want the newly created pane to be Ubuntu. Is there a way to configure something like that via the `settings.json`? Thanks in advance.
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:31:30 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 29, 2020):

Yes, you can customize the splitPane binding to use a split type of duplicate. Check out the alt+shift+d binding that comes in your settings file as an example.

@DHowett commented on GitHub (Sep 29, 2020): Yes, you can customize the `splitPane` binding to use a split type of `duplicate`. Check out the alt+shift+d binding that comes in your settings file as an example.
Author
Owner

@dabljues commented on GitHub (Sep 29, 2020):

Yes, you can customize the splitPane binding to use a split type of duplicate. Check out the alt+shift+d binding that comes in your settings file as an example.

Don't have any examples in my settings.json (can I somehow check the default keybindings somewhere? - not in the docs, but like in some kind of file), but I used splitMode as you suggested. Thanks for a quick response, couldn't find this in docs.

@dabljues commented on GitHub (Sep 29, 2020): > Yes, you can customize the `splitPane` binding to use a split type of `duplicate`. Check out the alt+shift+d binding that comes in your settings file as an example. Don't have any examples in my `settings.json` (can I somehow check the default keybindings somewhere? - not in the docs, but like in some kind of file), but I used `splitMode` as you suggested. Thanks for a quick response, couldn't find this in docs.
Author
Owner

@DHowett commented on GitHub (Sep 29, 2020):

Ah, you must have had a settings file that originated in Terminal <0.9 😄 Thanks for following along so long!

You can see the default settings by holding down Alt when you click on settings (or hold Alt as you open settings with Ctrl+,)

@DHowett commented on GitHub (Sep 29, 2020): Ah, you must have had a settings file that originated in Terminal <0.9 :smile: Thanks for following along so long! You can see the default settings by holding down <kbd>Alt</kbd> when you click on settings (or hold <kbd>Alt</kbd> as you open settings with <kbd>Ctrl+,</kbd>)
Author
Owner

@dabljues commented on GitHub (Sep 29, 2020):

True, been here since the beta. Thanks!

@dabljues commented on GitHub (Sep 29, 2020): True, been here since the beta. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10830