trymodule icon indicating copy to clipboard operation
trymodule copied to clipboard

Save/Restore session

Open victorb opened this issue 9 years ago • 1 comments

Something that would be useful to have is a save/restore functionality, where previous entered code and state can be restored in a future session.

  1. User enters trymodule lodash and repl opens with lodash installed
  2. User enters var something = lodash.repeat('WIN', 5)
  3. User enters save()
  4. User closes repl and opens it again with trymodule colors
  5. User enters restore()

And now something and lodash is available in the repl again.

victorb avatar Mar 21 '16 20:03 victorb

I suppose save() and restore() functions should be used as properties of an object such as trymodule.save() to protect them from accidental overrides.

ozantunca avatar Mar 28 '16 06:03 ozantunca