Skip to content

How can I stop Windows Terminal from re-sorting my manually sorted commands section of settings.json #17942

Discussion options

You must be logged in to vote

I figured it out by running this script: https://gist.github.com/zadjii-msft/2250c49c29e1fe1dc6ec510aaf06c31b#file-dump-workflows-py

You nest commands for the categorization bit:

{
    "name": "winget ...",
    "commands": [
        {
            "command": 
            {
                "action": "sendInput",
                "input": "winget install --id Microsoft.DotNet.Sdk.8 --source winget --rainbow"
            },
            "id": "winget.install-dotnetsdk.0",
            "name": "winget install --id Microsoft.DotNet.Sdk.8"
        },
        {
            "command": 
            {
                "action": "sendInput",
                "input": "winget search --id Microsoft.DotNet.S…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@DHowett
Comment options

@DHowett
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by rkeithhill-keysight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants