Skip to content

Editor Log that uses localStorage #66

@joebo

Description

@joebo

I often find myself copy/pasting scripts into the J Playground. It would be very useful if there was a facility that restored the editor contents when a new window is opened.

Proposed requirements:

  1. Whenever an instance of the playground is opened, a unique identifier is generated for that session
  2. Whenever the editor is run (or maybe on some timer) the editor contents are written to an Editor Log (stored in browser localStorage) with a timestamp for that session id
  3. Add a new option "Editor Log" under the View menu
  4. Clicking the "Editor Log" brings up a dialog similar to "Input Log" that shows the timestamp and an abbreviated form of the log entry.
  5. The user can pick the log entry to populate the editor window with the full contents
  6. The editor log keeps a reasonable # of sessions - maybe last 10?

Questions: Should this be called Session Log or Editor Log? I initially started with "Session Log" and renamed it to "Editor Log" to be more clear what it was doing.

Question: Should opening a new playground window automatically restore the contents of the last session?

I welcome feedback on this idea. @razetime this may be a good html/js one for you to tackle if you are interested in it

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions