> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tablepro.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Keyboard shortcuts

> Every key the Linux app binds, by where the focus is

`Ctrl+?` opens the same list inside the app, as does **Keyboard Shortcuts** in the main menu. The keys are fixed; none can be rebound yet.

Focus decides what some keys do. `Ctrl+F` searches the connection list, filters a table tab, finds in query results or finds in the editor, by where the focus is. `Escape` closes a dialog, stops a running query, or drops a selection or extra cursors.

![The Keyboard Shortcuts dialog open on its General and Tabs sections](https://mintcdn.com/ngquct/ZOkHJI-ToJCeJDO2/images/linux-shortcuts-dialog.png?fit=max\&auto=format\&n=ZOkHJI-ToJCeJDO2\&q=85\&s=6e383ab0cb1e60a5bd45233b6bf520cc)

Ctrl+? in any window

## General

| Action | Shortcut |
| - | - |
| New window | `Ctrl+Shift+N` |
| Preferences | `Ctrl+,` |
| Search connections | `Ctrl+F` |
| Query history | `Ctrl+Shift+H` |
| Show or hide the sidebar | `F9` |
| Show or hide the assistant | `Ctrl+Alt+A` |
| Keyboard shortcuts | `Ctrl+?` |
| Close a dialog | `Escape` |
| Quit | `Ctrl+Q` |

## Tabs

| Action | Shortcut |
| - | - |
| New SQL editor tab | `Ctrl+T` |
| Close the tab, or an empty window | `Ctrl+W` |
| Reopen the last closed tab | `Ctrl+Shift+T` |
| Switch to the recent tab. Hold `Ctrl` and press `E` again to go further back | `Ctrl+E` |
| View open tabs | `Ctrl+Shift+O` |
| Next tab | `Ctrl+Tab` or `Ctrl+Page Down` |
| Previous tab | `Ctrl+Shift+Tab` or `Ctrl+Page Up` |
| Move the tab right | `Ctrl+Shift+Page Down` |
| Move the tab left | `Ctrl+Shift+Page Up` |

## Table tab

| Action | Shortcut |
| - | - |
| Filter rows | `Ctrl+F` |
| Read the table again | `F5` or `Ctrl+R` |
| Save pending changes | `Ctrl+S` |
| Undo the last change | `Ctrl+Z` |
| Redo the last change | `Ctrl+Shift+Z` or `Ctrl+Y` |
| Previous page | `Alt+Page Up` |
| Next page | `Alt+Page Down` |
| Select all rows | `Ctrl+A` |
| Clear the selection | `Ctrl+Shift+A` |
| First row of the page | `Ctrl+Home` |
| Last row of the page | `Ctrl+End` |
| Extend the selection to the clicked row | `Shift+click` |
| Add or remove the clicked row | `Ctrl+click` |

## Data grid

| Action | Shortcut |
| - | - |
| Move between cells | Arrow keys |
| Edit a cell | `F2` or `Enter` |
| Toggle a boolean cell | `Space` |
| Show the cell menu | `Menu` or `Shift+F10` |
| Set the cell to NULL | `Ctrl+Backspace` |
| Open the referenced row | `Ctrl+J` |
| Widen the column | `Shift+Alt+Right` |
| Narrow the column | `Shift+Alt+Left` |
| Move the column left | `Alt+Left` |
| Move the column right | `Alt+Right` |
| Insert a row | `Ctrl+N` |
| Mark rows for deletion | `Delete` |
| Copy the cell or the selected rows | `Ctrl+C` |
| Paste | `Ctrl+V` |
| Clear the multi-row selection | `Escape` |
| Show or hide Row Details | `Alt+Enter` |
| Find in rows | `Ctrl+F` |
| Next match | `Ctrl+G` |
| Previous match | `Ctrl+Shift+G` |

While a cell is being edited:

| Action | Shortcut |
| - | - |
| Finish editing | `Enter` |
| Cancel editing | `Escape` |
| Finish and edit the next cell | `Tab` |
| Finish and edit the previous cell | `Shift+Tab` |
| Save the value in Row Details | `Ctrl+Enter` |

## SQL editor

| Action | Shortcut |
| - | - |
| Run the query or the selected text | `Ctrl+Enter` |
| Run the statement at the cursor | `Ctrl+Shift+Enter` |
| Cancel the running query | `Escape` |
| Move between the editor and the results | `F6` |
| Format SQL | `Ctrl+Shift+F` |
| Toggle line comment | `Ctrl+/` |
| Add a cursor at the next match | `Ctrl+D` |
| Add a cursor at every match | `Ctrl+Shift+L` |
| Add a cursor on the line above | `Shift+Alt+Up` |
| Add a cursor on the next line | `Shift+Alt+Down` |
| Add or remove a cursor | `Ctrl+click` |
| Return to one cursor | `Escape` |
| Open a SQL file | `Ctrl+O` |
| Save to the SQL file | `Ctrl+S` |
| Save to another SQL file | `Ctrl+Shift+S` |
| Find | `Ctrl+F` |
| Find and replace | `Ctrl+H` |
| Next match | `Ctrl+G` |
| Previous match | `Ctrl+Shift+G` |
| Accept the assistant's suggestion | `Tab` |
| Dismiss the assistant's suggestion | `Escape` |

## Table structure

| Action | Shortcut |
| - | - |
| Save pending changes | `Ctrl+S` |

## ER diagram

| Action | Shortcut |
| - | - |
| Zoom in | `Ctrl+Plus` or `Ctrl+=` |
| Zoom out | `Ctrl+Minus` |
| Reset zoom | `Ctrl+0` |
| Best fit | `F` |
| Read the tables again | `F5` or `Ctrl+R` |
| Open the selected table | `Enter` |
| Move the selected table | `Alt+Left`, `Alt+Right`, `Alt+Up`, `Alt+Down` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.