All nested commands get keybindings (ctrl+t) in command palette? #22151

Open
opened 2026-01-31 08:04:51 +00:00 by claunia · 2 comments
Owner

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

main, ~ e006f75f6

Something is WRONG with all nested commands:

image

You'll note, they seemingly all have ctrl+t as their keychord text.

This doesn't repro for me on 1.22.2334.0

Looking now at my settings to see if there's something sus in there...

Originally created by @zadjii-msft on GitHub (Aug 23, 2024). `main`, ~ e006f75f6 Something is WRONG with all nested commands: ![image](https://github.com/user-attachments/assets/c1e3cbba-c5a4-44e9-80eb-693eb2fb9360) You'll note, they seemingly all have `ctrl+t` as their keychord text. This doesn't repro for me on `1.22.2334.0` Looking now at my settings to see if there's something sus in there...
claunia added the Area-SettingsIssue-BugProduct-TerminalArea-CmdPal labels 2026-01-31 08:04:52 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 23, 2024):

image

Yes this is sus...

I actually have quite a few of these:

        {
            "id": null,
            "keys": "ctrl+t"
        },
        {
            "id": "User.showContextMenu",
            "keys": "ctrl+z"
        },
        {
            "id": "User.scrollToMark.6CD791B",
            "keys": "ctrl+pgdn"
        },
        {
            "id": "User.movePane.6E7070F6",
            "keys": "f3"
        },
        {
            "id": "User.movePane.B137036",
            "keys": "f4"
        },
        {
            "id": "User.closeTab.0",
            "keys": "ctrl+w"
        },
        {
            "id": "User.showSuggestions.807E15EE",
            "keys": "ctrl+shift+h"
        },
        {
            "id": null,
            "keys": "ctrl+shift+comma"
        },
        {
            "id": null,
            "keys": "ctrl+shift+period"
        },
        {
            "id": null,
            "keys": "ctrl+shift+/"
        },
        {
            "id": null,
            "keys": "ctrl+shift+;"
        },

I have no memory of what these were. Alas, sublime doesn't have the undo stack to a state before they were added. If I had to guess, commands that are no longer valid? Like, I bet ctrl+t was tasks (which over the course of time was turned into showSuggestions)

@zadjii-msft commented on GitHub (Aug 23, 2024): ![image](https://github.com/user-attachments/assets/cc049353-b2de-465f-9a28-579bfb1b8a20) Yes this is sus... I actually have quite a few of these: ``` { "id": null, "keys": "ctrl+t" }, { "id": "User.showContextMenu", "keys": "ctrl+z" }, { "id": "User.scrollToMark.6CD791B", "keys": "ctrl+pgdn" }, { "id": "User.movePane.6E7070F6", "keys": "f3" }, { "id": "User.movePane.B137036", "keys": "f4" }, { "id": "User.closeTab.0", "keys": "ctrl+w" }, { "id": "User.showSuggestions.807E15EE", "keys": "ctrl+shift+h" }, { "id": null, "keys": "ctrl+shift+comma" }, { "id": null, "keys": "ctrl+shift+period" }, { "id": null, "keys": "ctrl+shift+/" }, { "id": null, "keys": "ctrl+shift+;" }, ``` I have no memory of what these were. Alas, sublime doesn't have the undo stack to a state before they were added. If I had to guess, commands that are no longer valid? Like, I bet `ctrl+t` was `tasks` (which over the course of time was turned into `showSuggestions`)
Author
Owner

@zadjii-msft commented on GitHub (Aug 23, 2024):

Deleting those fixes it. And adding back a


        {
            "id": null,
            "keys": "ctrl+x"
        },

adds back a ctrl+x label to the cmdpal. I guess we're just handling the logic in here a little wack.

  • We probably shouldn't be assigning a keychord for the "null" command ID to every nested command?
  • Nested commands should have their command labels not on top of the > arrow (s.t. when #10209 is added, this will look right)
@zadjii-msft commented on GitHub (Aug 23, 2024): Deleting those fixes it. And adding back a ```jsonc { "id": null, "keys": "ctrl+x" }, ``` adds back a ctrl+x label to the cmdpal. I guess we're just handling the logic in here a little wack. * We probably shouldn't be assigning a keychord for the "null" command ID to every nested command? * Nested commands should have their command labels not on top of the `>` arrow (s.t. when #10209 is added, this will look right)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22151