Help › Make Querlyn yours
Change keyboard shortcuts
Find the shortcut for any command, use the keymap of DataGrip, VS Code or TablePlus, and change the ones you want.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
Every command in Querlyn can have a keyboard shortcut. Menus, tooltips, the command palette and this help all show the shortcut a command has on your computer, so what you read is what works.
Find a shortcut
Choose (⌘K ⌘S on macOS or Ctrl+K Ctrl+S on Windows and Linux), or use this link: .
The page lists every command with its shortcut, grouped the way the command palette names them. Commands that have no shortcut are listed too. Type in the filter to narrow the list:
| Type | To find |
|---|---|
format | Commands with that word in their name |
results grid | Shortcuts that work in the results grid |
shift enter | Shortcuts that use those keys |
Some shortcuts work in one place only, such as the SQL editor or the results grid, and the page says where. The same keys can do one thing in the editor and another in the results.
A shortcut in two parts, like the one for the Keyboard Shortcuts page itself, is pressed one part after the other: press the first, let go, and press the second.
Use the shortcuts of another tool
If your fingers know DataGrip, VS Code or TablePlus, choose that tool under Keyboard, Keymap in Settings. The change is immediate: shortcuts, menus, tooltips and the Keyboard Shortcuts page follow it. You can also choose from the command palette:
- , Querlyn's own shortcuts
A keymap gives a Querlyn command the keys the tool's own published keymap gives the same action. Commands the tool has no keys for keep Querlyn's. The Keyboard Shortcuts page marks each shortcut that comes from the keymap with the tool's name. Your own shortcuts, set as described below, always win over a keymap.
DataGrip
| Querlyn command | Takes the keys of DataGrip's |
|---|---|
| Reformat Code | |
| Recent Files | |
| of the table selected in the sidebar | Go to Declaration |
| Jump to Source | |
| Modify Object | |
| Show Diagram | |
| Refresh | |
| Stop | |
| Find Action | |
| (macOS and Linux) | Show Database Explorer |
| Hide All Tool Windows | |
| Browse Query History | |
| in the editor | Replace |
| a name in SQL | Rename |
| Add Selection for Next Occurrence | |
| Select All Occurrences | |
| Add Caret to Each Line in Selection | |
| Set NULL | |
| in the results | Submit |
| , , (Windows and Linux) | Close, Select Next Tab, Select Previous Tab |
| (Windows and Linux) | Settings |
| (Windows) | Refactor This |
Their keys were taken, and DataGrip has none for them, so with this keymap , and, on macOS, have no shortcut. They are still in the menus, the toolbars and the command palette.
VS Code
Querlyn's own shortcuts already follow VS Code's for the command palette, quick open, the sidebar, comments, multiple cursors, folding, find and replace, rename and tabs. The keymap adds:
| Querlyn command | Takes the keys of VS Code's |
|---|---|
| Show Explorer | |
| Format Document | |
| New File | |
| , (Windows) | Insert Cursor Above, Insert Cursor Below |
has no shortcut with this keymap.
TablePlus
TablePlus lists its shortcuts for macOS only, so on Windows and Linux this keymap keeps Querlyn's own. On macOS:
| Querlyn command | Takes the keys of TablePlus's |
|---|---|
| Beautify | |
| in the results | Insert a new row |
| Open a new connection | |
| Toggle console log | |
| Reload workspace | |
| , | Navigate to left tab, right tab |
| Switch database | |
| , | Add additional cursors above, below |
| Select all instances |
Switching databases takes a key that starts several of Querlyn's two-part shortcuts, so with this keymap , , and have no shortcut.
Change a shortcut
Shortcuts are set in the settings file, settings.toml, under
[keybindings]. The Settings tab says where the file is, at the bottom;
see The settings file.
- Find the command on the Keyboard Shortcuts page. Its ID is under its
name, for example
view.toggle_sidebar. - In
settings.toml, add a line with the ID and the keys under[keybindings]. - Quit Querlyn and open it again. Shortcuts are read when Querlyn starts.
[keybindings]
"view.toggle_sidebar" = "primary+shift+y"
"editor.fold_all" = "primary+k primary+9"
"query.explain" = ""
- Join the keys of a shortcut with
+. Writeprimaryfor ⌘ on macOS or Ctrl on Windows and Linux, which is the main modifier key of your computer, andctrl,altandshiftfor the others. - For a shortcut in two parts, write both with a space between them.
- An empty text, as in the last line, takes the shortcut away.
The Keyboard Shortcuts page marks a shortcut you changed with Changed.
To go back to a command's usual shortcut, delete its line.
When a shortcut does not work
Settings lists what is wrong with your shortcuts under Keyboard: an ID that is not a command, keys Querlyn cannot read, the same keys given to two commands, and keys that your operating system keeps for itself.
On macOS, the keys that ask the editor for suggestions (⌃Space on macOS or Ctrl+Space on Windows and Linux) may also be the keys that switch between input sources, and then macOS takes them first. says whether that is so on your computer and how to free the keys.
Help for Querlyn 0.1.0. All help topics