nesh icon indicating copy to clipboard operation
nesh copied to clipboard

Optionally watch preloaded code

Open rauschma opened this issue 10 years ago • 3 comments
trafficstars

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.

rauschma avatar Aug 10 '15 18:08 rauschma

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?

ccheever avatar Aug 10 '15 19:08 ccheever

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.

rauschma avatar Aug 10 '15 21:08 rauschma

@danielgtaylor would have to evaluate that then

ccheever avatar Aug 11 '15 20:08 ccheever