Keyboard shortcuts
Most commands in Drakkar’s menus have a shortcut you can change in Settings › Keymap. A few menu keys, such as ⌘C and ⌘Q, are fixed. Buttons show their shortcut in the tooltip, such as New tab (⌘T), and menus show it on the right, so a key you changed shows everywhere at once.
Change a shortcut
Section titled “Change a shortcut”
- Open Settings › Keymap (⌘,) and click the command’s row. It says Press new shortcut…
- Press the new keys. A shortcut needs ⌘, ⌃ or ⌥; the function keys F1–F12 work on their own too.
- If the keys are free, they are saved at once. Esc keeps the old shortcut.
To find a command, type part of its name or its keys, such as ⇧⌘, into Search actions or shortcuts.
When the keys are taken
Section titled “When the keys are taken”If another command already uses the keys, the row says so, for example ⇧⌘K is used by Push…. Click Replace or press ↵ to take them: the other command is left with no shortcut. Or press other keys.
The fixed menu keys can’t be taken, such as ⌘C of Edit › Copy: the row names the menu item and offers no Replace.
A command left without a shortcut shows Reset to default if it has a default.
Commands in the TREES, VIEWER and SEARCH groups act only while that part of the window has the keyboard, so they clash only within their group. That is why ⌘+ can be Expand all in a tree, Zoom in in the viewer and View › Bigger in a terminal at once.
Keyboard layout
Section titled “Keyboard layout”Shortcuts follow the key, not the letter is on by default. With Russian or another non-Latin layout on, ⌘W, ⌘D and ⌃C still work.
Default shortcuts
Section titled “Default shortcuts”Commands marked — have no default shortcut; give them one in Keymap. The groups are the ones Keymap shows.
Window
Section titled “Window”| Command | Keys |
|---|---|
| Settings… | ⌘, |
| Open folder… | — |
| Open project… | — |
| Show or hide sidebar | ⌘B |
| Show or hide Scratch | ⌘J |
| Show or hide Inbox | ⌘8 |
| Show or hide Git log | ⌘9 |
| Notifications | — |
| Workspaces | ⌘1 |
| Sessions | ⌘2 |
| Backlog | ⌘3 |
| Review | — |
| Files | ⇧⌘E |
| Add to backlog… | ⇧⌘B |
| Open file… | ⇧⌘O |
| Find in files… | ⇧⌘F |
| Replace… | ⌘R |
| Preview | ⌥⌘P |
Tabs & panes
Section titled “Tabs & panes”| Command | Keys |
|---|---|
| New tab… | ⌘T |
| Reopen closed tab | ⇧⌘T |
| New workspace | ⌘N |
| New workspace with options… | ⇧⌘N |
| Split right… | ⌘D |
| Split down… | ⇧⌘D |
| Move pane to new tab | ⌃⌘T |
| Move pane to tab… | ⌃⇧⌘T |
| Close pane | ⌘W |
| Next pane | ⌘] |
| Previous pane | ⌘[ |
| Focus pane left, right, up, down | ⇧⌘← ⇧⌘→ ⇧⌘↑ ⇧⌘↓ |
| Swap pane left, right, up, down | ⌃⇧⌘← ⌃⇧⌘→ ⌃⇧⌘↑ ⌃⇧⌘↓ |
| Next tab | ⌘} |
| Previous tab | ⌘{ |
| Command | Keys |
|---|---|
| Commit… | ⌘K |
| Push… | ⇧⌘K |
| Update project | ⌥⌘T |
| New branch… | ⌥⌘N |
In the Files tree and Review’s CHANGED FILES, while the tree has the keyboard. Row commands act on the selected row.
| Command | Keys |
|---|---|
| Copy path | ⌘C |
| Copy @path for agent | ⇧⌘C |
| Reveal in Finder | ⌥⌘R |
| Rename… | ⇧F6 |
| Delete… | ⌘⌫ |
| Expand all | ⌘+ |
| Collapse all | ⌘- |
Viewer
Section titled “Viewer”In Files, while an image, an SVG preview or a PDF has the keyboard.
| Command | Keys |
|---|---|
| Zoom in | ⌘+ |
| Zoom out | ⌘- |
| Fit | ⌘0 |
Search
Section titled “Search”In the query field of the editor’s search and of Find in files.
| Command | Keys |
|---|---|
| Match case | ⌥C |
| Whole words | ⌥W |
| Regex | ⌥X |
Fixed keys
Section titled “Fixed keys”These menu keys can’t be changed in Keymap.
| Menu item | Keys |
|---|---|
| Drakkar › Hide Drakkar | ⌘H |
| Drakkar › Hide Others | ⌥⌘H |
| Drakkar › Quit Drakkar | ⌘Q |
| File › Save | ⌘S |
| File › Close Window | ⇧⌘W |
| Edit › Undo, Redo | ⌘Z ⇧⌘Z |
| Edit › Cut, Copy, Paste, Select All | ⌘X ⌘C ⌘V ⌘A |
| Edit › Find… | ⌘F |
| View › Bigger, Smaller, Actual Size | ⌘+ ⌘- ⌘0 |
| View › Enter Full Screen | ⌃⌘F |
| Window › Minimize | ⌘M |
⌘F finds in whatever has the keyboard: the editor, a session’s transcript or the terminal. In the editor, a Markdown preview and the terminal, ⌘G and ⇧⌘G then move between the matches. Bigger, Smaller and Actual Size change the font of the focused terminal pane; see Terminal, tabs and panes.
Keys in other places
Section titled “Keys in other places”Lists, the diff and the editor have their own keys, mostly single letters and arrows. Each page lists them: