6 ms·
Aha! I had not thought to look for such a hook. Are they common? This is very close to what I'm looking for, thank you. Then, to toggle, I guess I would automat
by andywood 9y ago
Aha! I had not thought to look for such a hook. Are they common? This is very close to what I'm looking for, thank you. Then, to toggle, I guess I would automate closing and reopening the file.
Edit: Oops. Now I'm thinking this would probably break all code analysis features. It would be nice if there was a notion of a 'view' that is very superficial and doesn't impact the code analysis.
- frou_dh 9y agoAll programmer editors should at least have some mechanism to notify you when loads/saves occur. But you might need to use whatever the editor's embedded scripting language is to do the actual child process launching and to do something non-standard with their output. In Sublime Text for example, the above would be writing a Python class that handles some of these events: https://www.sublimetext.com/docs/3/api_reference.html#sublime_plugin.EventListener https://www.sublimetext.com/docs/3/api_reference.html#sublim... ...probably by making use of the subprocess module from Python's standard library: https://docs.python.org/3.3/library/subprocess.html https://docs.python.org/3.3/library/subprocess.html