Tabs
Every query, notebook, table view and settings page is a tab in the Workspace list at the top of the sidebar. Tabs keep their SQL, results and per-tab limits, and they survive a reload — in this browser by default, across devices if you turn on backend storage.
Creating and closing
- New query: ⌘E, or New query at the top of the list.
- New notebook: ⇧⌘E, or the caret next to New query → New notebook.
- Close the active tab: ⌥⌘W (CtrlAltW on Windows and Linux).
- Close any tab: middle-click it, or hover and click the ×.
- Close everything: hover the Workspace header and click Clear. The toast has an Undo.
The close shortcut uses ⌥ on purpose: plain ⌘W would close the browser tab.
New query tabs are numbered Query 1, Query 2, … The command palette also has New query, Duplicate current query, Rename query and Close tab.
Renaming
Double-click a query or notebook tab to edit its name in place; Enter or clicking away saves, an empty name is refused. Table, sheet and other tab kinds take their names from the object they show.
Two other ways:
- Rename with AI in the tab’s context menu asks Prism AI for a name based on the SQL.
- Settings → AI Features → Auto-rename tabs after execution does that automatically, once, after the first successful run — and only while the tab is still called
Query N. A sparkle spinner replaces the tab icon while the name is generated.
Reordering
Drag a tab up or down the list; a blue line shows where it will land. Dropping a tab onto another tab does something else — it opens both in a split view.
Right-clicking a tab
Right-click a query tab:
- Query History opens the history panel.
- Share Query creates an encrypted share link. Notebook tabs say Share Notebook.
- Change Color gives the tab one of nine colours (or Default) so you can tell projects apart at a glance.
- Pin to Favorites copies the tab into a Favorites section above Workspace — up to 8. Unpin from the same menu, the × on hover, or a middle-click on the favorite. The section is only there while Settings → Workspace → Enable Spaces is on (the default).
- Close closes the tab. There is no “close others” or “close to the right”; use Clear for a full reset.
Table and dataset tabs get the schema tree’s menu instead — Bulk Generate, Compare, Export, Import, Copy ID (⌘-click on the entity in the schema tree does the same) and SQL Templates.
What a tab keeps
A query tab stores its SQL, name, colour, cursor position and scroll, plus the per-tab byte limit and billing project from the status-bar ⚙ (the price shown there is derived from the byte limit and isn’t stored). The ⚙‘s reservation override and TABLESAMPLE setting aren’t stored either — they are written into the SQL itself, as SET @@reservation and a -- querylab:tablesample directive, so they travel with the text.
Where tabs are stored
By default everything lives in this browser’s local storage. Clearing site data, or opening Querylab.io in another browser, means an empty Workspace.
To carry tabs across devices, turn on Settings → Privacy → Privacy & Data Storage → Store tabs on backend (encrypted). Results stay in the browser either way; only SQL and tab names are synced.
Each change is saved a moment after you stop typing. The setting is unavailable in Playground and in the desktop app when you’re signed in with local credentials only.
Tabs you opened in Playground aren’t carried into a signed-in session; see Signing in from Playground.