nesh
nesh copied to clipboard
Optionally watch preloaded code
If I preload a file, it’d be nice if the file could be re-evaluated every time it changes. This is similar to auto-reloading modules, but slightly different. It should be easy to implement and would be tremendously useful for combining a text editor with nesh as a REPL.
I think it would probably be possible to implement this as a plugin, without requiring changes to the core of nesh. I've written a few nesh plugins so I could try to help out if you went down that path.
Are you working on some kind of Atom plugin or something?
The good thing would be that wouldn’t need a plugin (for the text editor) with this approach – whenever you save the file, it is re-evaluated. I.e., this works with any text editor.
Edit: I mean plugin for text editor, not for nesh.
@danielgtaylor would have to evaluate that then