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

Add context for build system, not for keybinding #28

Open
hxss opened this issue Mar 25, 2017 · 1 comment
Open

Add context for build system, not for keybinding #28

hxss opened this issue Mar 25, 2017 · 1 comment

Comments

@hxss
Copy link

hxss commented Mar 25, 2017

Is there a way to using build view only with specified build systems?
For example I want use it only with php. Will be comfortable set context for build system, not for keybinding.

{
	"cmd" : ["php", "$file"],
	"file_regex": "php$",
	"selector"  : "source.php",
	"context": [{"key": "build_fake", "operator":"equal", "operand":true}]
}

If I use onSaveBuild plugin - build view show correct output only by Ctrl+B, but on Ctrl+S I get a strange result(because there is no context).

If you bind bv to the build system - it will be able work with onSaveBuild and other key shortcuts(now on subl3 work only with Ctrl+b)

@rctay
Copy link
Owner

rctay commented Mar 27, 2017

Cool. However, I don't know how to do this. I believe the way to do it is, I would need to customize Packages/Default/exec.py, based on this page http://docs.sublimetext.info/en/latest/reference/build_systems/basics.html#overriding-the-default-command-for-build-systems Any idea?

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

No branches or pull requests

2 participants