microsoft/Terminal

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

Open

#17,114 建立於 2024年4月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C++ (3,212 fork)batch import
Area-CmdPalHelp WantedIssue-BugPriority-3Product-Terminal

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

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.

貢獻者指南