[PR #17418] Add support for disabling nesting in the sinppets menu #31214

Open
opened 2026-01-31 09:45:51 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17418

State: closed
Merged: No


Adds a nesting param to showSuggestions. The default remains "enabled". We now also accept "disabled", which will plop all the snippets into a single top-level list. This will make it easier for users to open suggestions based on what they've already typed at the commandline. e.g. type gitco at the commandline, and have that pre-filtered to the git commit -m ""\u001b[D snippet.

As spec'd in Suggestions-UI.md


It's dangerous to go alone, take this:

    "actions": 
    [
        {
            "command": 
            {
                "action": "showSuggestions",
                "nesting": "disabled",
                "source": "all",
                "useCommandline": true
            },
            "id": "User.showSuggestions.noNesting"
        },
    ],
    "keybindings": 
    [
        {
            "id": "User.showSuggestions.noNesting",
            "keys": "ctrl+shift+space"
        },
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17418 **State:** closed **Merged:** No --- Adds a `nesting` param to `showSuggestions`. The default remains `"enabled"`. We now also accept `"disabled"`, which will plop all the snippets into a single top-level list. This will make it easier for users to open suggestions based on what they've already typed at the commandline. e.g. type `gitco` at the commandline, and have that pre-filtered to the `git commit -m ""\u001b[D` snippet. As spec'd in [Suggestions-UI.md](https://github.com/microsoft/terminal/blob/main/doc/specs/%231595%20-%20Suggestions%20UI/Suggestions-UI.md) ---- It's dangerous to go alone, take this: ```jsonc "actions": [ { "command": { "action": "showSuggestions", "nesting": "disabled", "source": "all", "useCommandline": true }, "id": "User.showSuggestions.noNesting" }, ], "keybindings": [ { "id": "User.showSuggestions.noNesting", "keys": "ctrl+shift+space" }, ```
claunia added the pull-request label 2026-01-31 09:45:51 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31214