Skip to content

Comment on Ask HN: Are there any IDEs or editors that support editable views of code/text?parent

Comments

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.

All 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#sublim...

...probably by making use of the subprocess module from Python's standard library:

https://docs.python.org/3.3/library/subprocess.html

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.