Keyboard Shortcuts
TablePro is keyboard-driven. Most actions have shortcuts, and most menu shortcuts are rebindable.
Quick Reference
Essential Shortcuts
| Action | Shortcut |
|---|
| Execute query | Cmd+Enter |
| New connection | Cmd+N |
| Open history | Cmd+Y |
| Settings | Cmd+, |
| Quick Switcher | Cmd+P |
| Close window | Cmd+W |
| Quit | Cmd+Q |
SQL Editor
File Operations
| Action | Shortcut |
|---|
| Open SQL file | Cmd+O |
| Save file | Cmd+S |
| Save As | Cmd+Shift+S |
Query Execution
| Action | Shortcut | Description |
|---|
| Execute query | Cmd+Enter | Run query at cursor, or all selected statements sequentially |
| Explain query | Option+Cmd+E | Show execution plan for query at cursor |
| Format SQL | Option+Cmd+F | Format SQL query (beautify and standardize SQL syntax) |
Cmd+Enter is the most important shortcut. It runs the query your cursor is in, or executes only the selected text. If your selection contains multiple statements, they run sequentially in a transaction.
Text Editing
| Action | Shortcut |
|---|
| Select all | Cmd+A |
| Cut | Cmd+X |
| Copy | Cmd+C |
| Paste | Cmd+V |
| Undo | Cmd+Z |
| Redo | Cmd+Shift+Z |
| Delete line | Cmd+Shift+K |
| Duplicate line | Cmd+Shift+D |
Navigation
| Action | Shortcut |
|---|
| Start of line | Home or Cmd+Left |
| End of line | End or Cmd+Right |
| Start of document | Cmd+Home or Cmd+Up |
| End of document | Cmd+End or Cmd+Down |
| Move line up | Option+Up |
| Move line down | Option+Down |
| Center cursor in view | Ctrl+L |
Find and Replace
| Action | Shortcut |
|---|
| Find | Cmd+F |
| Find and replace | Cmd+Option+F |
| Find next | Cmd+G |
| Find previous | Cmd+Shift+G |
Selection
| Action | Shortcut |
|---|
| Select word | Cmd+D |
| Expand selection | Cmd+Shift+Right |
| Shrink selection | Cmd+Shift+Left |
Data Grid
Navigation
| Action | Shortcut |
|---|
| Move between cells | Arrow keys |
| Next cell | Tab |
| Previous cell | Shift+Tab |
| First cell in row | Home |
| Last cell in row | End |
| First row | Cmd+Home |
| Last row | Cmd+End |
| Page up | Page Up |
| Page down | Page Down |
Editing
| Action | Shortcut |
|---|
| Edit cell | Enter or F2 |
| Cancel edit | Escape |
| Delete row | Delete or Backspace |
| Commit changes | Cmd+S |
Data Changes
| Action | Shortcut | |
|---|
| Undo change | Cmd+Z | |
| Redo change | Cmd+Shift+Z | |
| Commit all changes | Cmd+S | |
| Preview SQL | Cmd+Shift+P | Preview pending SQL before commit |
Selection
| Action | Shortcut |
|---|
| Select cell | Click |
| Select row | Click row number |
| Select multiple cells | Click + drag |
| Extend selection | Shift + click |
| Add to selection | Cmd + click |
| Select all | Cmd+A |
Clipboard
| Action | Shortcut |
|---|
| Copy selection | Cmd+C |
| Copy as CSV | Cmd+Shift+C |
| Copy as JSON | Cmd+Option+J |
| Copy as TSV | Available from context menu |
Application
Windows & Tabs
| Action | Shortcut |
|---|
| Close window / tab | Cmd+W |
| New query tab | Cmd+T |
| Switch to tab 1-9 | Cmd+1 through Cmd+9 |
| Next tab | Cmd+Shift+] or Cmd+Option+Right |
| Previous tab | Cmd+Shift+[ or Cmd+Option+Left |
| Minimize | Cmd+M |
| Zoom | Cmd+Option+Z |
Connections
| Action | Shortcut |
|---|
| New connection | Cmd+N |
| Switch connection | Cmd+Option+C |
| Disconnect | Cmd+D |
| Refresh connection | Cmd+R |
| Delete selected connections | Cmd+Delete |
View
| Action | Shortcut |
|---|
| Toggle sidebar | Cmd+0 |
| Toggle full screen | Cmd+Control+F |
| Zoom in | Cmd+= |
| Zoom out | Cmd+- |
Panels
| Action | Shortcut |
|---|
| Query History | Cmd+Y |
| Toggle Cell Inspector | Cmd+Shift+B |
| Toggle AI Chat | Cmd+Shift+L |
| Settings | Cmd+, |
| Action | Shortcut | Description |
|---|
| Toggle AI Chat | Cmd+Shift+L | Open or close the AI chat panel |
| Explain with AI | Cmd+L | Send selected SQL (or current query) to AI for explanation |
| Optimize with AI | Cmd+Option+L | Send selected SQL (or current query) to AI for optimization |
Alternative navigation (Ctrl+HJKL)
For keyboards without dedicated arrow keys (e.g., HHKB), Ctrl+HJKL works as arrow key alternatives throughout the app. These work alongside arrow keys, not as replacements.
| Shortcut | Action | Where |
|---|
Ctrl+J / Ctrl+N | Move down / Next item | Data grid, connection list, quick switcher, database switcher |
Ctrl+K / Ctrl+P | Move up / Previous item | Data grid, connection list, quick switcher, database switcher |
Ctrl+H | Move left / Collapse group | Data grid (column left), welcome panel (collapse group at any nesting level), onboarding (previous page) |
Ctrl+L | Move right / Expand group | Data grid (column right), welcome panel (expand group at any nesting level), onboarding (next page) |
Ctrl+Shift+J | Extend selection down | Data grid |
Ctrl+Shift+K | Extend selection up | Data grid |
Vim Mode Keybindings
When Vim mode is enabled (Settings > Editor > Editing > Vim mode), the SQL editor uses modal keybindings. A mode indicator badge appears in the toolbar.
Modes
| Key | Action |
|---|
Escape | Return to Normal mode |
i / I | Insert before cursor / at line start |
a / A | Append after cursor / at line end |
o / O | Open line below / above |
v | Visual mode (character-wise) |
V | Visual Line mode (line-wise) |
: | Command-line mode |
Navigation (Normal Mode)
| Key | Action |
|---|
h / j / k / l | Left / Down / Up / Right |
w / b / e | Next word / Previous word / End of word |
0 / $ | Beginning / End of line |
^ / _ | First non-blank character of line |
gg / G | First line / Last line |
Operators (Normal Mode)
| Key | Action |
|---|
dd | Delete line |
yy | Yank (copy) line |
cc | Change line |
x | Delete character |
p / P | Paste after / before cursor |
d + motion | Delete with motion |
y + motion | Yank with motion |
c + motion | Change with motion |
Visual Mode
| Key | Action |
|---|
d | Delete selection |
y | Yank selection |
c | Change selection |
Command-Line Mode
| Command | Action |
|---|
:w | Execute query (Cmd+Enter) |
:q | Close tab |
Count Prefixes
Prefix motions and operators with a number: 3j (down 3 lines), 2dd (delete 2 lines), 5x (delete 5 characters).
Vim mode keybindings only apply in the SQL editor. They don’t affect the data grid or other panels. Standard shortcuts like Cmd+Enter work in all modes.
Filtering
| Action | Shortcut |
|---|
| Toggle filter panel | Cmd+F |
| Apply filters | Enter (in value field) |
Table Structure
Navigation
| Action | Shortcut |
|---|
| Columns tab | Cmd+1 |
| Indexes tab | Cmd+2 |
| Foreign Keys tab | Cmd+3 |
| DDL tab | Cmd+4 |
Import/Export
| Action | Shortcut |
|---|
| Export data | Cmd+Shift+E |
| Import data | Cmd+Shift+I |
Quick switcher
The Quick Switcher (Cmd+P) lets you search and jump to any table, view, database, schema, or recent query. It uses fuzzy matching, so typing usr finds users, user_settings, etc.
| Action | Shortcut |
|---|
| Open Quick Switcher | Cmd+P |
| Navigate results | Up / Down arrows |
| Open selected item | Return |
| Dismiss | Escape |
Results are grouped by type (tables, views, system tables, databases, schemas, recent queries) and ranked by match quality when searching.
Global Shortcuts
| Action | Shortcut |
|---|
| Quit application | Cmd+Q |
| Preferences | Cmd+, |
| Search documentation | Cmd+? |
Customizing Shortcuts
Most menu shortcuts are rebindable in Settings > Keyboard.
Rebinding a Shortcut
- Open Settings (
Cmd+,) and select the Keyboard tab
- Find the action (use the search field to filter)
- Click the shortcut field next to the action
- Press the new key combination
- The shortcut updates immediately in the menu bar
Clearing a Shortcut
- Click the shortcut field for the action
- Press
Delete or Backspace
- The shortcut is removed
Conflict Detection
If you assign a shortcut already in use, TablePro shows a confirmation dialog:
- Cancel — keep the existing assignment
- Reassign — move the shortcut to the new action (clears the previous action’s shortcut)
System-reserved shortcuts (Cmd+Q, Cmd+H, Cmd+M, Cmd+,) cannot be reassigned. TablePro warns if you try.
Resetting to Defaults
Click Reset to Defaults to restore all shortcuts to their original values.
Tab switching shortcuts (Cmd+1 through Cmd+9) follow standard macOS convention and cannot be customized.
Tips for Efficiency
Master these five shortcuts first:
Cmd+Enter - Execute query
Cmd+N - New connection
Cmd+Y - Query history
Cmd+F - Find
Cmd+S - Save changes
Most other shortcuts follow patterns: Cmd+ for primary actions, add Shift or Option for variations.
Accessibility
TablePro is fully keyboard-navigable. Tab moves between UI sections, arrow keys navigate within them. VoiceOver is supported with standard Control+Option navigation.