PressDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/letstri/druk/llms.txt
Use this file to discover all available pages before exploring further.
F1 inside Druk to open the command palette, where every command is listed and searchable. Ctrl+K shows a peek strip of every key that is active in the current pane — it disappears on the next keypress. All global shortcuts are remappable via the keybindings config.
Global shortcuts
These shortcuts work in every pane: the editor, the file tree, the git panel, and the search panel.| Key | Action |
|---|---|
F1 or Ctrl+Opt+P | Command palette (browse themes, run any command) |
Ctrl+P or Ctrl+O | Open file — fuzzy search across the project |
Ctrl+K | Peek at every key active in the current pane |
Ctrl+S | Save file |
Ctrl+W | Close tab |
Ctrl+Opt+T | Reopen closed tab |
Ctrl+T | Switch to an open tab |
Ctrl+Opt+← | Previous tab |
Ctrl+Opt+→ | Next tab |
Ctrl+B | Show / hide sidebar |
Ctrl+Opt+G | Source control panel |
Ctrl+G | Go to line |
Ctrl+N | New file |
Ctrl+Opt+N | New folder |
Ctrl+Q | Quit |
Ctrl+C copies the current selection when text is selected, and quits when nothing is selected — so it never discards unsaved work.Editor shortcuts
These shortcuts are active when the editor pane has focus. PressTab from the file tree to move focus to the editor, and Esc to move back.
| Key | Action |
|---|---|
Ctrl+Z / Ctrl+Y | Undo / redo |
Ctrl+C | Copy selection (system clipboard; OSC52 over SSH) |
Ctrl+X / Ctrl+V | Cut / paste |
Ctrl+A | Select all |
Ctrl+/ or Ctrl+L | Toggle comment |
Ctrl+F | Find in file |
Ctrl+R | Find in project (Ctrl+Opt+F in vim mode) |
Ctrl+G | Go to line |
Ctrl+N | New file |
Ctrl+Opt+N | New folder |
Ctrl+Opt+M | Markdown: toggle rendered / source view |
Opt+↑ / Opt+↓ | Move line or selection up / down |
Opt+Shift+↑ / Opt+Shift+↓ | Duplicate line or selection up / down |
Ctrl+Space | Trigger autocomplete (Tab accepts) |
Shift+Tab | Outdent |
PgUp / PgDn or Ctrl+U / Ctrl+D | Scroll a page |
Tab | Move focus to editor (when pressed in the file tree) |
Esc | Move focus back to the file tree |
File tree shortcuts
These shortcuts are active when the file tree has focus.| Key | Action |
|---|---|
↑ / ↓ | Move selection |
→ | Expand folder or open file |
← | Collapse folder |
Enter | Open file / toggle folder |
a | New file |
A | New folder |
r | Rename |
d | Delete |
x | Cut (for moving) |
c | Copy |
p | Paste here |
Shift+↑ / Shift+↓ | Extend selection (multi-select) |
[ / ] | Narrow / widen the sidebar |
Tab | Move focus to the editor |
Git panel shortcuts
Open the source-control panel withCtrl+Opt+G. These shortcuts are active while the panel is shown.
| Key | Action |
|---|---|
↑ / ↓ | Walk changed files; opens the diff for the file under the cursor |
→ / ← | Expand / collapse a folder in the panel |
Tab | Step into the diff pane; press Tab again to toggle inline / split layout |
Esc | Close the diff and return to the file tree |
c | Commit — pick files, type a message |
p | Push |
b | Switch branch |
B | Compare branches |
Search panel shortcuts
Ctrl+F searches the open file. Ctrl+R searches the whole project. These shortcuts apply while a search panel is open.
| Key | Action |
|---|---|
Tab | In file search: open the replace field. In project search: fold / unfold the current file’s results. |
Enter | In replace: replace the selected match |
Ctrl+A | In replace: replace all matches in the file |
Ctrl+C | Toggle case-sensitive matching |
Ctrl+W | Toggle whole-word matching |
Ctrl+R | Toggle regex matching |
Vim mode
Enable vim mode by settingvim: true in settings (F1 → Settings → vim).
- Normal mode
- Operators & motions
- Visual mode
- Insert mode
| Key | Action |
|---|---|
h j k l | Left / down / up / right |
w / b | Next / previous word |
{ / } | Jump to previous / next blank line (paragraph motion) |
0 / $ | Start / end of line |
gg / G | First / last line (5G goes to line 5) |
u / Ctrl+R | Undo / redo |
x | Delete character under cursor |
D | Delete to end of line |
C | Change to end of line (delete and enter insert mode) |
dd | Delete line |
yy | Yank (copy) line |
p / P | Paste after / before cursor |
| Numeric prefix | Repeat the next motion or operator (e.g. 5j, 3dd) |
In vim mode,
Ctrl+R is redo. Use Ctrl+Opt+F instead of Ctrl+R to trigger a project-wide search.Platform notes
Opt vs Alt
Druk names the modifier key for your OS:
Opt (Option, ⌥) on macOS, Alt everywhere else. Every shortcut in this reference uses Opt; substitute Alt on Linux and Windows.Ctrl+Shift limitations
Most terminals cannot distinguish
Ctrl+Shift+letter from plain Ctrl+letter. Druk therefore uses Ctrl+Opt as the two-modifier spelling. Terminals with the kitty keyboard protocol can send Ctrl+Shift (e.g. Ctrl+Shift+P also opens the palette there, as in VS Code).Ctrl+/ on macOS Terminal.app
Some terminals — including macOS Terminal.app — cannot send
Ctrl+/ at all. Toggle comment also responds to Ctrl+L for exactly this reason.Ctrl+C behavior
Ctrl+C copies when text is selected and quits when nothing is selected. This means it never silently discards unsaved edits.