sublime-text-shell-command icon indicating copy to clipboard operation
sublime-text-shell-command copied to clipboard

Use value from settings in a command

Open gwenzek opened this issue 9 years ago • 1 comments

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) ?

gwenzek avatar Nov 07 '16 14:11 gwenzek

Great idea.

markbirbeck avatar Sep 16 '18 11:09 markbirbeck