Keybindings, splitpane, commandline ... does it work? #10264

Closed
opened 2026-01-31 02:16:42 +00:00 by claunia · 3 comments
Owner

Originally created by @vefatica on GitHub (Aug 24, 2020).

I have these:

{ "command": { "action": "splitPane", "split": "auto", "profile": "Ubuntu"}, "keys": "ctrl+shift+u" },
{ "command": { "action": "splitPane", "split": "auto", "commandLine": "c:\windows\system32\wsl.exe"}, "keys": "ctrl+shift+b" },

The first works nicely. The second gives a split pane with the default profile in it (regardless of the EXE I specified by commandLine).

If commandLine works, what am I doing wrong?

I ask because I noticed that when I run WSL in a console I get one instance of the "init" process. When I run "Ubuntu" in Terminal (as above) I get two instances of the "init" process. Is that expected behavior?

  • Vince
Originally created by @vefatica on GitHub (Aug 24, 2020). I have these: { "command": { "action": "splitPane", "split": "auto", "profile": "Ubuntu"}, "keys": "ctrl+shift+u" }, { "command": { "action": "splitPane", "split": "auto", "commandLine": "c:\\windows\\system32\\wsl.exe"}, "keys": "ctrl+shift+b" }, The first works nicely. The second gives a split pane with the default profile in it (regardless of the EXE I specified by commandLine). If commandLine works, what am I doing wrong? I ask because I noticed that when I run WSL in a console I get one instance of the "init" process. When I run "Ubuntu" in Terminal (as above) I get two instances of the "init" process. Is that expected behavior? - Vince
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 02:16:43 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 24, 2020):

The settings file is case-sensitive; you should use commandline instead of commandLine. If you use a text editor that has Schema support like VSCode it will tell you if there are any issues with your settings file like that. Once you fix that, you will have an escaping problem. You will want to use \\ because \ has a special meaning in JSON.

I would not pay too much attention to the specific number of init processes, because they are used for multiple different things by WSL.

@DHowett commented on GitHub (Aug 24, 2020): The settings file is case-sensitive; you should use `commandline` instead of `commandLine`. If you use a text editor that has Schema support like VSCode it will tell you if there are any issues with your settings file like that. Once you fix that, you will have an escaping problem. You will want to use `\\` because `\` has a special meaning in JSON. I would not pay too much attention to the specific number of `init` processes, because they are used for multiple different things by WSL.
Author
Owner

@vefatica commented on GitHub (Aug 24, 2020):

Indeed, "commandline" works better. But "commandLine" (not "commandline") is shown in this document:

https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings

  • Vince
@vefatica commented on GitHub (Aug 24, 2020): Indeed, "commandline" works better. But "commandLine" (not "commandline") is shown in this document: **https://docs.microsoft.com/en-us/windows/terminal/customize-settings/key-bindings** - Vince
Author
Owner

@DHowett commented on GitHub (Aug 24, 2020):

Thanks. We should fix that

@DHowett commented on GitHub (Aug 24, 2020): Thanks. We should fix that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10264