Skip to content

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.

Settings › Keymap: the switch Shortcuts follow the key, not the letter is on; under it the field Search actions or shortcuts with the keyboard button, and the WINDOW group, such as Show or hide sidebar ⌘B, Sessions ⌘2, Backlog ⌘3 and Files ⇧⌘E; the Review row, which has no shortcut, is recording and reads ⇧⌘K is used by Push…, Replace, Esc keeps no shortcut
Review has no default shortcut. ⇧⌘K belongs to Push…: Replace takes it, Esc leaves Review without one.
  1. Open Settings › Keymap (⌘,) and click the command’s row. It says Press new shortcut…
  2. Press the new keys. A shortcut needs ⌘, ⌃ or ⌥; the function keys F1–F12 work on their own too.
  3. 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.

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.

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.

Commands marked — have no default shortcut; give them one in Keymap. The groups are the ones Keymap shows.

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
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 ⌘-

In Files, while an image, an SVG preview or a PDF has the keyboard.

Command Keys
Zoom in ⌘+
Zoom out ⌘-
Fit ⌘0

In the query field of the editor’s search and of Find in files.

Command Keys
Match case ⌥C
Whole words ⌥W
Regex ⌥X

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.

Lists, the diff and the editor have their own keys, mostly single letters and arrows. Each page lists them: