rust-playground
rust-playground copied to clipboard
Limitation: Browser storage "only" saves one program.
This is a feature request. By program I mean a single code string, usually containing fn main
or #[test]\nfn...
.
I see how redux
is used on the session and local browser storage. It's clear there is one single code
string. I don't know how to do this, but opening the RPG in a new tab should load the "next" *program, not the previous one from another open tab. Failing that, the ability to work in multiple "soft-tabs" and have the code be an array would be super useful.
soft-tabs would be a row of tabs generated inside the page/tab(nothing at all todo with a browser's tabs), allowing the user to work on more than one program. If the browser tabs are accessible, PWA?, then an array of soft-tabs(&[[str]]
or maybe HashMap<_, Vec<str>>
) would be super handy.
- Or set of soft-tabs. Where opening a new tab loads the next found/located set of soft-tabs or a new empty set of soft-tabs.
I may find time to clone RP and work on this, so comments on potential implementations welcome.