Hi,
is there a way to find out which build system is currently selected in the ‘Tools->Build System’ menu? I would like to write a plugin which shows this information in the status bar.
Thanks,
Markus
Hi,
is there a way to find out which build system is currently selected in the ‘Tools->Build System’ menu? I would like to write a plugin which shows this information in the status bar.
Thanks,
Markus
I don’t think so. Your best bet is probably to hook on_window_command and check the build command’s parameters, especially when "select": true
is specified. (This is only for recent ST3 builds.)
Just experiment with the available build commands a bit with sublime.log_commands(True)
enabled.
Thanks for your reply. Yes, on_window_command is a nice way to hook into Sublimes behavior, and change things. Unfortunately, I would have to change the build system manually, to get called in on_window_command and be able to display something in the status bar. But I would like to display the selected build system before going to the submenu. Well, maybe I could keep the last setting persistent in some file. This way one would have to change the build system only the first time.
Thanks for your input.