jcartledge / sublime-worksheet

An inline REPL for JavaScript, PHP, Ruby & more in Sublime Text 2 and 3
MIT License
332 stars 18 forks source link

Support keepalive for REPL instances #45

Open djspiewak opened 9 years ago

djspiewak commented 9 years ago

Certain REPL executables (ahem scala) have significant startup overhead. It would be extremely convenient if we could configure (probably using worksheet-settings for that particular language) a REPL type to remain resident even after an eval. Keepalive would need to be configured both as a flag enabling its function and as a special command to pass to the REPL instance that resets its state (e.g. :reset for scala). We would also need a new command to manually bounce the resident instance if something gets screwed up.