Skip to main content

Documentation 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.

Press 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.
KeyAction
F1 or Ctrl+Opt+PCommand palette (browse themes, run any command)
Ctrl+P or Ctrl+OOpen file — fuzzy search across the project
Ctrl+KPeek at every key active in the current pane
Ctrl+SSave file
Ctrl+WClose tab
Ctrl+Opt+TReopen closed tab
Ctrl+TSwitch to an open tab
Ctrl+Opt+←Previous tab
Ctrl+Opt+→Next tab
Ctrl+BShow / hide sidebar
Ctrl+Opt+GSource control panel
Ctrl+GGo to line
Ctrl+NNew file
Ctrl+Opt+NNew folder
Ctrl+QQuit
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. Press Tab from the file tree to move focus to the editor, and Esc to move back.
KeyAction
Ctrl+Z / Ctrl+YUndo / redo
Ctrl+CCopy selection (system clipboard; OSC52 over SSH)
Ctrl+X / Ctrl+VCut / paste
Ctrl+ASelect all
Ctrl+/ or Ctrl+LToggle comment
Ctrl+FFind in file
Ctrl+RFind in project (Ctrl+Opt+F in vim mode)
Ctrl+GGo to line
Ctrl+NNew file
Ctrl+Opt+NNew folder
Ctrl+Opt+MMarkdown: toggle rendered / source view
Opt+↑ / Opt+↓Move line or selection up / down
Opt+Shift+↑ / Opt+Shift+↓Duplicate line or selection up / down
Ctrl+SpaceTrigger autocomplete (Tab accepts)
Shift+TabOutdent
PgUp / PgDn or Ctrl+U / Ctrl+DScroll a page
TabMove focus to editor (when pressed in the file tree)
EscMove focus back to the file tree

File tree shortcuts

These shortcuts are active when the file tree has focus.
KeyAction
/ Move selection
Expand folder or open file
Collapse folder
EnterOpen file / toggle folder
aNew file
ANew folder
rRename
dDelete
xCut (for moving)
cCopy
pPaste here
Shift+↑ / Shift+↓Extend selection (multi-select)
[ / ]Narrow / widen the sidebar
TabMove focus to the editor

Git panel shortcuts

Open the source-control panel with Ctrl+Opt+G. These shortcuts are active while the panel is shown.
KeyAction
/ Walk changed files; opens the diff for the file under the cursor
/ Expand / collapse a folder in the panel
TabStep into the diff pane; press Tab again to toggle inline / split layout
EscClose the diff and return to the file tree
cCommit — pick files, type a message
pPush
bSwitch branch
BCompare 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.
KeyAction
TabIn file search: open the replace field. In project search: fold / unfold the current file’s results.
EnterIn replace: replace the selected match
Ctrl+AIn replace: replace all matches in the file
Ctrl+CToggle case-sensitive matching
Ctrl+WToggle whole-word matching
Ctrl+RToggle regex matching

Vim mode

Enable vim mode by setting vim: true in settings (F1Settingsvim).
KeyAction
h j k lLeft / down / up / right
w / bNext / previous word
{ / }Jump to previous / next blank line (paragraph motion)
0 / $Start / end of line
gg / GFirst / last line (5G goes to line 5)
u / Ctrl+RUndo / redo
xDelete character under cursor
DDelete to end of line
CChange to end of line (delete and enter insert mode)
ddDelete line
yyYank (copy) line
p / PPaste after / before cursor
Numeric prefixRepeat 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.
To remap any shortcut, see Keybindings configuration. You can rebind any command listed on this page, and Druk’s command palette, peek strip, and status-bar hints all update to show your custom keys automatically.

Build docs developers (and LLMs) love