RED Docs

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

KeyAction
⌘FFind in the query
⇧⌘SSave the current query as a snippet
⇧⌘OOpen a saved query

Saved queries are plain .sql files, so they're easy to keep in version control or share.

Query tabs

KeyAction
⌘TNew tab
⌘WClose tab (confirms if it holds unsaved work)
⌃Tab / ⌃⇧TabNext / previous tab
⌘↵Run the active tab's query (or selection)
EscLeave 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.

On this page