Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use value from settings in a command #58

Open
gwenzek opened this issue Nov 7, 2016 · 1 comment
Open

Use value from settings in a command #58

gwenzek opened this issue Nov 7, 2016 · 1 comment

Comments

@gwenzek
Copy link
Contributor

gwenzek commented Nov 7, 2016

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

@markbirbeck
Copy link
Owner

Great idea.

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

No branches or pull requests

2 participants