Shortcut Keys

Every keyboard shortcut in Mantidb, from the menu bar to the grid, editor and tool windows.

Most of Mantidb can be used without the mouse. This page lists the default shortcuts. You can change any menu shortcut in Settings ▸ Shortcuts.

Mantidb

CommandShortcut
About Mantidb—
Settings…⌘,
Hide Mantidb⌘H
Quit Mantidb⌘Q

File

CommandShortcut
Connections…⌘N
New Query Tab⌘T
Open SQL File…⌘O
Reload⌘R
Commit Changes (Save in a query tab)⌘S
Save As…⇧⌘S
Discard Changes—
Add Row⌘I
Import…⇧⌘I
Export…⇧⌘E
Back Up Database…—
Restore Database…—
Close (closes the window)⌘W

Edit

CommandShortcut
Undo / Redo⌘Z / ⇧⌘Z
Cut / Copy / Paste⌘X / ⌘C / ⌘V
Select All⌘A
Find ▸ Find…⌘F
Find ▸ Find and Replace…⇧⌘F
Find ▸ Find Next⌘G
Find ▸ Find Previous⇧⌘G
Find ▸ Use Selection for Find⌘E

Query

CommandShortcut
Run Current Statement⌘↩
Run All⇧⌘↩
Save as Favorite…⌘D
Format SQL⌥⌘F
Format All⌥⇧⌘F
Toggle Comment⌘/
Shift Right⌘]
Shift Left⌘[

View

CommandShortcut
Open Anything…⌘K
Toggle Left Sidebar⌘0
Toggle Row Details⌥⌘0
Split Pane / Close Split Pane⌘\
Process List⌥⌘P
Users & Roles⌥⌘U
ER Diagram⌥⌘E
Metrics Board⌥⌘B
Appearance ▸ Use System Setting / Light / Dark—

Window

CommandShortcut
Minimize⌘M

There is no shortcut to close a single tab. ⌘W closes the whole window; close a tab with the × button on the tab.

Context shortcuts

These work in a specific part of the app and aren't in the menu bar.

Data grid

KeyAction
⌘FAdd a filter (+ Filter) when the filter bar is visible
↩Edit the focused cell, or open its editor popover
Delete / ⌦Mark the selected rows for deletion (press again to restore)
SpaceQuick Look the focused cell
Arrow keysMove the cell selection
⇧ + arrow keysExtend the cell selection
⎋Go back to row selection
⌥-click the foreign-key arrowPeek at the referenced row

Tabs, popovers and filters

WhereKeyAction
Tab barDouble-click a tabKeep a preview tab open
Cell editor popovers⌘↩Save
Cell editor popovers⎋Cancel / Done
Filter editor↩Apply

Editor and Assistant

WhereKeyAction
SQL editor⇥ / ⇧⇥Indent / outdent the selection
Assistant⌘↩ or ↩Send

Tool windows

WhereKeyAction
Process List⌘RRefresh
Users & Roles⌘SCreate Role / Apply
ER Diagram⌘− / ⌘0 / ⌘+Zoom out / Zoom to fit / Zoom in
ER Diagram⌘RReload
Metrics Board⌘RRefresh all widgets, or Preview in the widget editor

Redis and MongoDB browsers

WhereKeyAction
Redis browser⌘SSave the key
MongoDB browser⌘SSave or insert the document
MongoDB browser⌘↩Find

Connections and dialogs

WhereKeyAction
Connection list↩Connect to the selected connection
Connection list⌘VImport a connection URL from the clipboard
Dialogs and sheets↩Default button
Dialogs and sheets⎋Cancel

Overlapping shortcuts

A few keys do different things depending on where you are:

  • ⌘0 toggles the left sidebar, but in the ER Diagram window it zooms to fit.
  • ⌘R reloads the current tab, but in a tool window it refreshes that window.
  • ⌘F opens Find in the SQL editor, but adds a filter in a table tab.

When a tool window has focus, its own shortcut wins.

Customize shortcuts

Open Mantidb ▸ Settings… (⌘,) and choose Shortcuts to rebind any menu command except the standard macOS ones. A new shortcut must include ⌘ or ⌃, and Mantidb rejects combinations that are already taken. See Settings.