"commandPalette", "launchMode": "commandLine" doesn't work from the command palette #21567

Open
opened 2026-01-31 07:48:22 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Apr 23, 2024).

From: https://github.com/MicrosoftDocs/terminal/issues/578

The setting:
{ "command": "commandPalette", "launchMode": "commandLine", "keys": "" } does not work for my current version of the terminal (Windows Terminal Version: 1.14.2281.0)

Well, that kinda makes sense. If you're already in the command palette, then toggling the command palette will close it, rather than change the mode (which is what's expected here).

FWIW, binding this to a key does work:

        {
            "command":
            {
                "action": "commandPalette",
                "launchMode": "commandLine"
            }, 
            "keys": "ctrl+shift+."
        },

I suppose technically, this should move to be a bug on the Terminal repo - the commandPalette action with a different mode than the current one should clear the input and switch to that mode. That makes sense.

But alternatively, you could just backspace the >, and presto, command-line mode.

Originally created by @zadjii-msft on GitHub (Apr 23, 2024). From: https://github.com/MicrosoftDocs/terminal/issues/578 > The setting: > `{ "command": "commandPalette", "launchMode": "commandLine", "keys": "" }` does not work for my current version of the terminal (Windows Terminal Version: 1.14.2281.0) Well, that kinda makes sense. If you're already in the command palette, then toggling the command palette will close it, rather than change the mode (which is what's expected here). FWIW, binding this to a key does work: ```json { "command": { "action": "commandPalette", "launchMode": "commandLine" }, "keys": "ctrl+shift+." }, ``` I suppose technically, this should move to be a bug on the Terminal repo - the `commandPalette` action with a different mode than the current one should clear the input and switch to that mode. That makes sense. But alternatively, you could just backspace the `>`, and _presto_, command-line mode.
claunia added the Help WantedIssue-BugPriority-3Product-TerminalArea-CmdPal labels 2026-01-31 07:48:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21567