Skip to content

Default values for variables #190

@Taitava

Description

@Taitava

Discussed in #146

  • Default values: if a custom variable does not yet have a value, a default value for it can be defined in each shell command's settings. Default values are shell command specific, so two shell commands can define different default values for the same variable.

  • In addition to default values, add an option to silently cancel execution if the variable does not have a value. Maybe not so useful for custom variables, but will be good for built-in {{file_*}} variables when executing shell commands via events in a situation where no file is active, in which case the execution can be automatically cancelled without error messages.

  • Parse {{variables}} in default values.

I decided to create a separate issue for this feature in order to make it a bit more prominent, not just someting that happens to come along with other features. So it will also have a record in CHANGELOG.md. Being able to supress {{file_*}} variables' availability errors can be so handy in some cases (e.g. events) that it deserves a bit more attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improving change

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions