codesandbox-client
codesandbox-client copied to clipboard
More embed query params like "?view=editor" added to the main sandbox editor
🌈 More embed query params like "?view=editor" added to the main sandbox editor
It would be extremely useful to share a sandbox URL with a guest / collaborator that:
- Starts with only the code editor visible and preview pane collapsed e.g. https://codesandbox.io/s/crazy-spence-c25y6?
view=editor - Starts with multiple tabs already open which I've specified, the settings sidebar hidden (this is a new query param I am suggesting for both the embed and the main sandbox editor) and the preview pane is collapsed too e.g. https://codesandbox.io/s/crazy-spence-c25y6?
view=editor&module=/package.json,/index.html&hidesidebar=1
In summary, I believe the following query params (in order of priority) would be really useful for the main sandbox editor, borrowed from the embed editor:
view-editor,split(default) orpreviewhidesidebar(this is a new query param I am suggesting for both the embed and the main sandbox editor) -0(default) or1module- paths to module(s) (starting with/and comma separated) or entry path (default)
Please thumbs up this feature if you would like to see it get implemented!
Thanks for another detailed feature request @jasdeepkhalsa - I've added this to our internal board as well
It would be awesome if you could also specify the default preview url for the embedded view. That way you can embed the same repository several times on a single page with different starting preview urls