Browse documentation

Keymaps Reference

Press ? from the Grid, Query Pad, or Sidebar to open contextual help. The help also covers short-lived floats, pickers, trees, and diagrams that do not belong in the configurable primary-surface catalog.

Cataloged actions can be remapped or disabled through setup() without changing the default keys:

require('dadbod-grip').setup({
  keymaps = {
    palette = '<F1>',
    sidebar_close = '<C-c>',
    grid_live_sql = false,
  },
})

Setting one cataloged action to false disables that mapping. completion = false removes the completion-specific Query Pad mappings. ai = false keeps A and gA available so they can explain that AI is disabled, while :GripFill remains unavailable.

153 primary mappings are cataloged across four surfaces.

Grid (111)

KeyActionDescriptionMode
C-ppaletteOpens the searchable command palette.
Normal
?helpOpens the keymap help.
Normal
gGer_diagramOpens the entity-relationship diagram.
Normal
gCconnectionsOpens the connection picker.
Normal
C-gconnections_altOpens the connection picker with its alternate key.
Normal
gTtable_pickerOpens the table picker.
Normal
gttable_picker_altOpens the table picker with its alternate key.
Normal
ghquery_historyOpens the query history.
Normal
gqload_savedLoads a saved query.
Normal
QwelcomeReturns to the welcome screen.
Normal
qquery_padOpens or focuses the query pad.
Normal
AaiGenerates SQL from the grid with the configured AI provider.
Normal
gbschema_browserOpens, focuses, or closes the schema browser.
Normal
gotable_picker_goOpens the table picker with the short key.
Normal
1tab_1Opens the first surface-specific view.
Normal
2tab_2Opens the second surface-specific view.
Normal
3tab_3Opens the third surface-specific view.
Normal
4tab_4Opens the entity-relationship view.
Normal
5tab_5Opens the column statistics view.
Normal
6tab_6Opens the columns view.
Normal
7tab_7Opens the foreign-keys view.
Normal
8tab_8Opens the indexes view.
Normal
9tab_9Opens the constraints view.
Normal
jgrid_row_downMoves down within the data rows.
NormalVisual
kgrid_row_upMoves up within the data rows.
NormalVisual
gggrid_row_firstMoves to the first data row.
NormalVisual
Ggrid_row_lastMoves to the last data row.
NormalVisual
hgrid_col_leftMoves left with native Vim count and boundary behavior.
Normal
lgrid_col_rightMoves right with native Vim count and boundary behavior.
Normal
wgrid_col_nextMoves to the next column.
Normal
bgrid_col_prevMoves to the previous column.
Normal
Tabgrid_col_tabMoves to the next column with Tab.
Normal
S-Tabgrid_col_tab_backMoves to the previous column with Shift-Tab.
Normal
egrid_col_endMoves to the end of the cell and then advances.
Normal
0grid_col_firstMoves to the first column.
Normal
^grid_col_first2Moves to the first column with the alternate key.
Normal
$grid_col_lastMoves to the last column.
Normal
{grid_prev_modMoves to the previous modified row.
Normal
}grid_next_modMoves to the next modified row.
Normal
igrid_editOpens the current cell for editing.
Normal
CRgrid_edit_enterOpens the current cell for editing with Enter.
Normal
gBgrid_cell_bufferOpens the current cell in a split buffer.
Normal
xgrid_nullStages NULL for the current cell.
Normal
gUgrid_column_setStages one value across the visible column.
Normal
pgrid_pastePastes the clipboard into the current cell.
Normal
Pgrid_paste_rowsPastes lines into consecutive rows.
Normal
ogrid_insertStages a new blank row.
Normal
cgrid_cloneClones the current row with primary keys cleared.
Normal
dgrid_deleteToggles staged deletion for the current row.
Normal
agrid_applyApplies all staged database changes.
Normal
ugrid_undoUndoes the latest staged change.
Normal
C-rgrid_redoRedoes the latest undone change.
Normal
Ugrid_undo_allClears all staged changes.
Normal
egrid_v_editStages one value across the selected cells.
Visual
dgrid_v_deleteToggles staged deletion for the selected rows.
Visual
xgrid_v_nullStages NULL across the selected cells.
Visual
ygrid_v_yankYanks the selected cells.
Visual
gdgrid_v_compareCompares exactly two selected rows.
Visual
-grid_hide_colHides the current column.
Normal
g-grid_restore_colsRestores all hidden columns.
Normal
gHgrid_col_visOpens the column visibility picker.
Normal
=grid_col_widthCycles the current column width.
Normal
Tgrid_type_rowToggles the column type row.
Normal
glgrid_live_sqlToggles the live SQL preview.
Normal
Kgrid_row_viewOpens the current row or selection as key-value pairs.
NormalVisual
sgrid_sortCycles sorting for the current column.
Normal
Sgrid_sort_stackAdds or cycles a stacked sort.
Normal
fgrid_filter_cellFilters by the current cell value.
Normal
gngrid_filter_nullFilters the current column for NULL values.
Normal
gFgrid_filter_buildOpens the structured filter builder.
Normal
C-fgrid_filter_wherePrompts for a free-form WHERE expression.
Normal
Fgrid_filter_clearClears user filters while preserving pinned context.
Normal
gpgrid_preset_loadLoads a saved filter preset.
Normal
gPgrid_preset_saveSaves the current filters as a preset.
Normal
Xgrid_reset_viewClears sorting and user filters and returns to page one.
Normal
Lgrid_next_pageLoads the next page.
Normal
Hgrid_prev_pageLoads the previous page.
Normal
]pgrid_next_page2Loads the next page with the bracket alias.
Normal
[pgrid_prev_page2Loads the previous page with the bracket alias.
Normal
]Pgrid_last_pageLoads the last page.
Normal
[Pgrid_first_pageLoads the first page.
Normal
gegrid_explain_cellExplains the current cell.
Normal
gKgrid_json_treeOpens the current JSON value as a tree.
Normal
gsgrid_preview_sqlPreviews the staged SQL.
Normal
gcgrid_copy_sqlCopies the staged SQL.
Normal
gigrid_table_infoOpens compact table information.
Normal
gIgrid_table_propsOpens detailed table properties.
Normal
gNgrid_rename_colRenames the displayed column header.
Normal
gSgrid_col_statsOpens statistics for the current column.
Normal
gRgrid_profileProfiles every column in the current table.
Normal
gVgrid_show_ddlShows the CREATE TABLE statement.
Normal
gQgrid_explainShows the query plan.
Normal
gxgrid_url_openOpens the URL in the current cell.
Normal
gDgrid_diffCompares the current table with another table.
Normal
gagrid_aggregateAggregates the current column or selection.
NormalVisual
gEgrid_export_clipExports the chosen result scope to the clipboard.
Normal
gXgrid_export_fileExports the chosen result scope to a file.
Normal
ygrid_yank_cellYanks the current cell.
Normal
Ygrid_yank_rowYanks the current row as CSV.
Normal
gYgrid_yank_tableYanks the complete result as CSV.
Normal
gygrid_yank_mdYanks the result as a Markdown table.
Normal
gfgrid_fk_followFollows the foreign key in the current cell.
Normal
gmgrid_fk_referencingOpens rows that reference the current row.
Normal
C-ogrid_fk_backReturns to the previous relationship result.
Normal
rgrid_refreshRefreshes the current result.
Normal
gWgrid_watchToggles automatic result refresh.
Normal
g!grid_write_modeToggles write-back for supported local files.
Normal
gOgrid_open_editReopens a read-only result as an editable table.
Normal
gAgrid_fillStages rows generated by the configured AI provider.
Normal
gLgrid_pinPins or unpins the current result.
Normal
gJgrid_resultsOpens the result switcher.
Normal

Query Pad (35)

KeyActionDescriptionMode
C-ppaletteOpens the searchable command palette.
Normal
?helpOpens the keymap help.
Normal
gGer_diagramOpens the entity-relationship diagram.
Normal
gCconnectionsOpens the connection picker.
Normal
C-gconnections_altOpens the connection picker with its alternate key.
Normal
gTtable_pickerOpens the table picker.
Normal
gttable_picker_altOpens the table picker with its alternate key.
Normal
ghquery_historyOpens the query history.
Normal
gqload_savedLoads a saved query.
Normal
QwelcomeReturns to the welcome screen.
Normal
gbschema_browserOpens, focuses, or closes the schema browser.
Normal
gwgoto_gridFocuses the grid window.
Normal
gnopen_notebookOpens a SQL or Markdown notebook in the query pad.
Normal
gotable_picker_goOpens the table picker with the short key.
Normal
1tab_1Opens the first surface-specific view.
Normal
2tab_2Opens the second surface-specific view.
Normal
3tab_3Opens the third surface-specific view.
Normal
4tab_4Opens the entity-relationship view.
Normal
5tab_5Opens the column statistics view.
Normal
6tab_6Opens the columns view.
Normal
7tab_7Opens the foreign-keys view.
Normal
8tab_8Opens the indexes view.
Normal
9tab_9Opens the constraints view.
Normal
C-CRqpad_executeExecutes the current SQL block or selection.
NormalInsertVisual
S-CRqpad_execute_newExecutes SQL in a new result split.
NormalVisual
C-sqpad_saveSaves the query.
Normal
gAqpad_aiGenerates SQL in the query pad with the configured AI provider.
Normal
gFqpad_formatFormats the query pad SQL.
Normal
qqpad_closeCloses the query pad and returns to the welcome screen.
Normal
C-Spaceqpad_completeTriggers SQL completion.
Insert
Tabqpad_complete_nextTriggers completion or selects the next item.
Insert
S-Tabqpad_complete_prevSelects the previous completion item or inserts Shift-Tab.
Insert
Downqpad_complete_downSelects the next completion item or moves down.
Insert
Upqpad_complete_upSelects the previous completion item or moves up.
Insert
CRqpad_complete_acceptAccepts the selected completion item or inserts a newline.
Insert

Sidebar (45)

KeyActionDescriptionMode
C-ppaletteOpens the searchable command palette.
Normal
?helpOpens the keymap help.
Normal
gGer_diagramOpens the entity-relationship diagram.
Normal
gCconnectionsOpens the connection picker.
Normal
C-gconnections_altOpens the connection picker with its alternate key.
Normal
gTtable_pickerOpens the table picker.
Normal
gttable_picker_altOpens the table picker with its alternate key.
Normal
ghquery_historyOpens the query history.
Normal
gqload_savedLoads a saved query.
Normal
QwelcomeReturns to the welcome screen.
Normal
qquery_padOpens or focuses the query pad.
Normal
gbschema_browserOpens, focuses, or closes the schema browser.
Normal
gwgoto_gridFocuses the grid window.
Normal
gnopen_notebookOpens a SQL or Markdown notebook in the query pad.
Normal
1tab_1Opens the first surface-specific view.
Normal
2tab_2Opens the second surface-specific view.
Normal
3tab_3Opens the third surface-specific view.
Normal
4tab_4Opens the entity-relationship view.
Normal
5tab_5Opens the column statistics view.
Normal
6tab_6Opens the columns view.
Normal
7tab_7Opens the foreign-keys view.
Normal
8tab_8Opens the indexes view.
Normal
9tab_9Opens the constraints view.
Normal
CRsidebar_openOpens the table under the cursor.
Normal
S-CRsidebar_open_splOpens the table under the cursor in a new split.
Normal
lsidebar_expandExpands the table under the cursor.
Normal
hsidebar_collapseCollapses the table under the cursor.
Normal
zosidebar_expand_zExpands the table with the fold-style key.
Normal
zcsidebar_collap_zCollapses the table with the fold-style key.
Normal
Lsidebar_expand_allExpands every table.
Normal
Hsidebar_collap_allCollapses every table.
Normal
/sidebar_filterFilters tables by name.
Normal
Fsidebar_filter_cClears the sidebar filter.
Normal
nsidebar_nextMoves to the next table.
Normal
Nsidebar_prevMoves to the previous table.
Normal
rsidebar_refreshRefreshes the schema.
Normal
Rsidebar_refresh2Force-refreshes the schema.
Normal
ysidebar_yankYanks the current table or column name.
Normal
gosidebar_open_sOpens the current table with newest rows first.
Normal
Escsidebar_closeCloses the schema sidebar.
Normal
Dsidebar_dropDrops the current table after confirmation.
Normal
+sidebar_createCreates a table.
Normal
gasidebar_attachAttaches a database to the current DuckDB connection.
Normal
gdsidebar_detachDetaches a database from the current DuckDB connection.
Normal
gcsidebar_connsOpens the connection picker from the sidebar.
Normal

Cell Editor (6)

KeyActionDescriptionMode
CReditor_saveSaves the edited cell.
NormalInsert
C-seditor_save_altSaves the edited cell with the alternate key.
NormalInsert
Esceditor_cancelCancels the cell edit.
Normal
qeditor_cancel_qCancels the cell edit with the normal-mode key.
Normal
gxeditor_open_urlOpens the edited value when it is a URL.
Normal
C-ceditor_cancel_insertCancels the cell edit from insert mode.
Insert