Skip to content

Feature Request: option to not run scripts after insertion #414

@dimateos

Description

@dimateos

Hey, thanks for the great extension!

Is your feature request related to a problem? Please describe.
The scripts functionality is very useful, but I feel like the fact that the snippets are always auto run is a limiting factor. When a command is very similar, it's easier to have a single snippet and tune it before runnning, e.g. here I dont want two snippets just to remove "-no":

"terminalAllInOne.scripts": [
    {
        "name": "git: consider unchaged",
        "script": ["git update-index --no-assume-unchanged"],
    },
]

Describe the solution you'd like
Probably a key added to the json object toggling the behavior:

"terminalAllInOne.scripts": [
    {
        "name": "git: consider unchaged",
        "script": ["git update-index --no-assume-unchanged"],
        "run": false,
    },
]

Additional context
This also seems useful for scripts you need to complete, e.g. like a final argument etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions