Keymaps
The TUI has two keymaps, chosen with tui.keymap in the config file or the :keymap command: default (arrows and PgUp/PgDn) and vim (the same keys plus hjkl and friends). Press F1 or ? in the TUI to see the keys for the current context. For the rest of the TUI, see the TUI guide.
Navigation
| Action | Default | Vim |
|---|---|---|
| move up | up | up k |
| move down | down | down j |
| move left | left | left h |
| move right | right | right l |
| page up | pgup | pgup ctrl+u |
| page down | pgdown | pgdown ctrl+d |
| go to top | ctrl+home | ctrl+home gg |
| go to bottom | ctrl+end | ctrl+end G |
| first column | home | home |
| last column | end | end |
Panes
| Action | Default | Vim |
|---|---|---|
| next pane (sidebar, grid, editor, AI panel) | tab | tab |
| previous pane | shift+tab | shift+tab |
| open / row detail | enter | enter |
| back / close; in the grid, focus the sidebar | esc | esc |
| filter rows | f | f |
| filter sidebar | / | / |
| cycle sort | s | s |
Grid
| Action | Default | Vim |
|---|---|---|
| widen column | > | > |
| narrow column | < | < |
| copy cell | y | y |
| copy row as JSON | Y | Y |
| edit cell (grid or row detail) | e | e |
| insert a row | i | i |
| mark / unmark the row for deletion (grid or row detail) | d | d |
| set the edited cell to NULL | ctrl+n | ctrl+n |
| save a multi-line cell edit | ctrl+s | ctrl+s |
| find rows similar to this one (vector collections) | S | S |
| row detail: collapse every node | [ | [ |
| row detail: expand every node | ] | ] |
| live tail the open collection (drivers with watch support) | W | W |
| live tail: pause / resume | p | p |
| live tail: clear the events | c | c |
App
| Action | Default | Vim |
|---|---|---|
| command palette | : | : |
| help | f1 ? | f1 ? |
| quit | q | q |
| cancel a run, :apply, export or load (waits on a commit or rollback) / quit | ctrl+c | ctrl+c |
| open the AI panel / close it | a | a |
| AI panel: switch between ask and answer | ctrl+t | ctrl+t |
| fix a failed run with AI (on its error tab) | f | f |
| AI panel: load the proposed query into the editor (ctrl+enter / f5 also runs it) | ctrl+o | ctrl+o |
| AI panel: copy the proposed query | ctrl+y | ctrl+y |
| add connection | n | n |
| edit connection | E | E |
| delete connection | D | D |
Editor
| Action | Default | Vim |
|---|---|---|
| open / close the query editor | ctrl+e | ctrl+e |
| run the statement or selection | ctrl+enter f5 | ctrl+enter f5 |
| run the whole buffer | alt+enter shift+f5 | alt+enter shift+f5 |
| previous result tab | [ | [ |
| next result tab | ] | ] |
| close result tab | x | x |
| complete the name at the cursor | ctrl+space | ctrl+space |
| search the query history | ctrl+r | ctrl+r |