Every default shortcut on macOS, Windows and Linux, and how to change them.
TableGrip is built to be driven from the keyboard. Press ⇧ ⌘ / in the app to see this
list, and change any shortcut in Settings → Keymap.
#General
| Action | macOS | Windows / Linux |
|---|
| Go to anything | ⌘ P, or ⇧ ⇧ | Ctrl P, or Shift Shift |
| New console for the current connection | ⌘ T | Ctrl T |
| Close tab | ⌘ W | Ctrl W |
| Next / previous tab | ⇧ ⌘ ] / ⇧ ⌘ [, or ⌃ Tab / ⌃ ⇧ Tab | Ctrl PgDn / Ctrl PgUp, or Ctrl Tab / Ctrl Shift Tab |
| Connections | ⌘ 1 | Alt 1 |
| Query History | ⌘ 2 | Alt 2 |
| Agent | ⌘ 3 | Alt 3 |
| Saved Queries | ⌘ 4 | Alt 4 |
| Mention the selection in the agent chat | ⌘ L | Ctrl L |
| Show / hide the sidebar | ⌘ B | Ctrl B |
| Zoom in · out · reset | ⌘ = · ⌘ - · ⌘ 0 | Ctrl = · Ctrl - · Ctrl 0 |
| Activity: sessions and locks | ⌥ ⌘ A | Ctrl Alt A |
| Settings | ⌘ , | Ctrl Alt S |
| Keyboard shortcuts | ⇧ ⌘ / | Ctrl Shift / |
#Console
| Action | macOS | Windows / Linux |
|---|
| Run the statement at the caret, or the selection | ⌘ ↩ | Ctrl Enter |
| Run the script | ⇧ ⌘ ↩ | Ctrl Shift Enter |
| Cancel the running query | ⌘ . | Ctrl F2 |
| Explain plan | ⇧ ⌘ E | Ctrl Shift E |
| Save query | ⌘ S | Ctrl S |
| Save script to a file | ⇧ ⌘ S | Ctrl Shift S |
#SQL editor
| Action | macOS | Windows / Linux |
|---|
| Completion | ⌃ Space | Ctrl Space |
| Comment / uncomment lines | ⌘ / | Ctrl / |
| Duplicate line or selection | ⌘ D | Ctrl D |
| Delete line | ⌘ ⌫ | Ctrl Y |
| Move line up / down | ⌥ ⇧ ↑ / ↓ | Alt Shift ↑ / ↓ |
| Reformat SQL | ⌥ ⌘ L | Ctrl Alt L |
| Find · replace | ⌘ F · ⌘ R | Ctrl F · Ctrl R |
| Indent / outdent | Tab / ⇧ Tab | Tab / Shift Tab |
#Data grid
| Action | macOS | Windows / Linux |
|---|
| Copy · copy with header | ⌘ C · ⇧ ⌘ C | Ctrl C · Ctrl Shift C |
| Select all | ⌘ A | Ctrl A |
| Edit cell | ↩ or F2 | Enter or F2 |
| Open a larger cell editor | ⇧ ↩ | Shift Enter |
Set cell to NULL | ⌥ ⌘ N | Ctrl Alt N |
| Add row | ⌘ N | Ctrl N |
| Delete rows | ⌘ ⌫ | Ctrl Backspace |
| Undo · redo | ⌘ Z · ⇧ ⌘ Z or ⌘ Y | Ctrl Z · Ctrl Shift Z or Ctrl Y |
| Revert rows | ⌥ ⌘ Z | Ctrl Alt Z |
| Submit changes | ⌘ ↩ or ⌘ S | Ctrl Enter or Ctrl S |
| Reload table | ⌘ R | Ctrl R |
| Go to the row a foreign key points at | ⌘ B | Ctrl B |
#Table filter
| Action | macOS | Windows / Linux |
|---|
| Focus the filter | ⌘ F | Ctrl F |
| Filter by the selected cell's value | ⌥ ⌘ F | Ctrl Alt F |
| Exclude the selected cell's value | ⌥ ⇧ ⌘ F | Ctrl Alt Shift F |
| Switch between Builder and SQL | ⇧ ⌘ F | Ctrl Shift F |
| Clear the filter | ⇧ ⌘ ⌫ | Ctrl Shift Backspace |
| Back to the grid | Esc | Esc |
#Inside the filter builder
| Action | macOS | Windows / Linux |
|---|
| Apply | ↩ or ⌘ ↩ | Enter or Ctrl Enter |
| Add a condition below | ⌘ N | Ctrl N |
| Add a group below | ⇧ ⌘ N | Ctrl Shift N |
| Add a SQL condition below | ⌥ ⌘ N | Ctrl Alt N |
| Choose the column · the operator | ⌥ ⌘ C · ⌥ ⌘ O | Ctrl Alt C · Ctrl Alt O |
| Switch the group between all / any | ⇧ ⌘ A | Ctrl Shift A |
| Match case | ⌥ C | Alt C |
| Previous / next condition | ↑ / ↓ | ↑ / ↓ |
#MongoDB documents
| Action | macOS | Windows / Linux |
|---|
| Show / hide the query builder | ⇧ ⌘ F | Ctrl Shift F |
| Add document | ⌘ N | Ctrl N |
| Submit changes | ⌘ ↩ or ⌘ S | Ctrl Enter or Ctrl S |
#Keymap presets
Coming from another tool? Settings → Keymap → Preset switches a set of shortcuts at once:
| Preset | Changes |
|---|
| TableGrip | The defaults above |
| DataGrip / IntelliJ | Cancel query: ⌘ F2 · Go to anything: ⌘ O |
| VS Code | Agent: ⌃ ⌘ I · Next / previous tab: ⌥ ⌘ → / ← · Duplicate: ⌥ ⇧ ↓ · Delete line: ⇧ ⌘ K · Move line: ⌥ ↑ / ↓ · Reformat: ⌥ ⇧ F · Replace: ⌥ ⌘ F (Ctrl H on Windows / Linux) |
#Change a shortcut
In Settings → Keymap, search for an action or a key, click its shortcut and press the new one. TableGrip warns
when the new shortcut clashes with another action, and each action can be reset on its own. Your changes are saved as
keyBindings in settings.json.