Skip to content

Use value from settings in a command #58

Description

@gwenzek

Hi thanks for this great plugin ! I really enjoy the simplicity and usability.

It would be nice to have a way to pass a string from the settings into a command.

For example now we can create a command like: "git diff {file}"

But I'd like to create a command "git log --format='{git_log_format}'" where the value of "git_log_format" would be found inside a setting file.

Can we add this feature ?
I can do a PR if you're interested.

Basically I'll need to change "VariableSubstitution.py".

About that why do you use "create_variable_values" instead of sublime api "extract_variables()" (in sublime.Window) ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions