Use TableAI from the keyboard
Shortcuts follow the active window and focused control. Select the SQL editor for text commands or the results grid for cell commands.
Use TableAI from the keyboard
Section titled “Use TableAI from the keyboard”- Open a connection with SQL ready in the editor.
- Click the editor to give it focus.
- Place the cursor in a statement, or select the SQL you want to run.
- Press ⌘R.
- Click the returned grid to begin cell navigation.
The SQL workflow explains how the run target changes with the cursor and selection.
Edit and run SQL
Section titled “Edit and run SQL”| Task | Shortcut |
|---|---|
| Run the current statement or selection | ⌘R |
| Run the complete script when multiple statements are present | ⌘⌥R |
| Format SQL | ⌘⌥F |
| Toggle a line comment | ⌘/ |
| Duplicate a line | ⌘D |
| Cancel a running query | ⌘. |
| Open the query in a new tab | ⌘⇧R |
| Save a reusable query | ⌘⇧S |
| Open Query History | ⌘⇧H |
Navigate the results grid
Section titled “Navigate the results grid”| Task | Shortcut |
|---|---|
| Move between cells | Arrow keys, Tab or Shift+Tab |
| Extend a selection | Shift+Arrow |
| Jump to a grid boundary | ⌘+Arrow |
| Select the active row | Shift+Space |
| Copy selected cells | ⌘C |
| Start editing a cell | Return |
| Cancel a cell edit | Esc |
| Undo a staged change | ⌘Z |
| Redo a staged change | ⌘⇧Z |
| Apply staged changes | ⌘S |
While you edit text inside a cell, navigation and text shortcuts act in that editor. Finish or cancel the cell edit before moving through the grid. For the review steps before Apply, see edit data safely.
Move between tabs
Section titled “Move between tabs”| Task | Shortcut |
|---|---|
| Previous tab | ⌘⌥← |
| Next tab | ⌘⌥→ |
| Select a tab by position | ⌘+1 through 9 |
| Close the active tab | ⌘W |
| Reopen the last closed tab | ⌘⇧T |
Check the Query menu for the current command label and availability. Save Query stores SQL for reuse; Apply submits staged database changes.
Related
Section titled “Related”- Browse and search to organize the tables you keep open.
- Read results for value viewers and foreign key navigation.
- Read-only results if a cell will not enter edit mode.
- Database guides: PostgreSQL, MySQL and SQLite.