MongoDB toolbar and keys
- MongoDB
With a MongoDB connection in front, the connection toolbar under the title bar holds the MongoDB tools. Each button runs a command, and the main commands have default keys, so the same tools are a click, a key or a palette entry away.
The toolbar
Section titled “The toolbar”| Group | Button | Opens |
|---|---|---|
| Query | Collection | A collection tab |
| Query | IntelliShell | IntelliShell, starting with the collection’s find({}) when one is in view |
| Query | Aggregate | The aggregation editor |
| Data | Import | The Import dialog |
| Data | Export | The Export dialog; in a collection tab, for its query |
| Compare | Structure | Structure sync, with the database as the source |
| Compare | Data | Data compare, with the database as the source |
| Compare | Saved | The saved comparisons |
| Tools | Schema | Schema analysis |
| Tools | Monitor | The monitor of the server tools |
| Tools | Tasks | The Schedules tab |
Hover a button to see its command and keys. A button is dimmed when its command cannot run.
The other MongoDB tools are in the explorer’s menus and in the command palette, under MongoDB: Open SQL Query, Manage Indexes, Manage Users, Manage Roles, Transfer Data To…, Reschema…, Data Masking…, Data Generator…, Collection History…, Current Operations and Query Profiler, among others.
What a tool acts on
Section titled “What a tool acts on”A tool works on the connection, database and collection in view:
- the active tab’s, when the tab is on a MongoDB connection;
- otherwise the database or folder last clicked in the side bar;
- otherwise the only MongoDB connection that is open.
When that leaves out something the tool needs, Querybara asks in the palette: Which MongoDB connection?, Which database of the connection, or Which collection of the database.
Hide the toolbar
Section titled “Hide the toolbar”Run View: Toggle Toolbar from the command palette, or press the keys of that command (Ctrl + Alt + B, or Cmd + Option + B on macOS). The toolbar stays hidden, for every engine, until you show it again the same way.
These are the default keys of the MongoDB commands. Change them in the Keyboard Shortcuts editor.
| Command | Windows and Linux | macOS |
|---|---|---|
| MongoDB: Open IntelliShell | Ctrl + L | Cmd + L |
| MongoDB: Open SQL Query | Ctrl + Shift + L | Cmd + Shift + L |
| MongoDB: Open Aggregation Editor | F4 | F4 |
| MongoDB: Tree View | Ctrl + Alt + 1 | Cmd + Option + 1 |
| MongoDB: Table View | Ctrl + Alt + 2 | Cmd + Option + 2 |
| MongoDB: JSON View | Ctrl + Alt + 3 | Cmd + Option + 3 |
| MongoDB: Insert Document… | Ctrl + D | Cmd + D |
| MongoDB: Update Dialog… | Ctrl + U | Cmd + U |
| MongoDB: Delete Dialog… | F8 | F8 |
| MongoDB: Query Code | Ctrl + G | Cmd + G |
| View: Toggle Toolbar | Ctrl + Alt + B | Cmd + Option + B |
- The three view keys switch the active collection tab, or the result tab of the active IntelliShell.
- Insert Document… opens an empty document editor, and Update Dialog… and Delete Dialog… open bulk update and bulk delete, in a collection tab that can be changed.
- Query Code shows the collection tab’s Query Code section.
- F4 and F8 do nothing while you type in a field or an editor.
These MongoDB commands have no keys to start with: Open Collection Tab, Analyze Schema…, Manage Indexes, Manage Users, Manage Roles, Compare To…, Compare Data To…, Transfer Data To…, Reschema…, Data Masking…, Data Generator…, Collection History…, Export…, Import…, Server Status, Current Operations, Query Profiler and Toggle Visual Query Builder.
Related
Section titled “Related”Documents Querybara 0.1.19 · built from89dc752