The SQL editor
Query tabs, running queries, and history.
RED's editor is organized into query tabs - each tab holds its own query and
result grid, so you can keep several investigations open side by side. The editor
offers autocompletion as you type, and you can split the view
(⌘\) to keep two tabs open at once.
Running a query
Press ⌘↵ to run the active tab's query (or just the current selection). It works from any pane, not only the editor - so you can run again without leaving the result grid.
Press ⇧⌘E to explain the current query and see its plan instead of running it.
Find and save
| Key | Action |
|---|---|
| ⌘F | Find in the query |
| ⇧⌘S | Save the current query as a snippet |
| ⇧⌘O | Open a saved query |
Saved queries are plain .sql files, so they're easy to keep in version control
or share.
Query tabs
| Key | Action |
|---|---|
| ⌘T | New tab |
| ⌘W | Close tab (confirms if it holds unsaved work) |
| ⌃Tab / ⌃⇧Tab | Next / previous tab |
| ⌘↵ | Run the active tab's query (or selection) |
| Esc | Leave the editor for the result grid |
History
The history popover is keyboard driven once open: ↑ / ↓ move, ↵ loads the entry, Esc closes. Open it from the command palette (⌘K) or the History button.
Everything is in the palette
Every discrete action lives in the command palette (⌘K) - a searchable, phase-aware list of what's actionable right now. The keyboard reference covers the direct bindings for the common ones.