This guide walks you through opening a project, navigating the file tree, editing and saving files, and finding features through the command palette — everything you need to be productive in Druk from your very first session.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.
Opening a project
Druk accepts a directory, a single file, or a file with an optional line number as its argument. If you omit the argument entirely, it opens the current directory.Ctrl+B to bring the file tree back — the folder containing the file is still the project root for search and git.
You can also run Druk without installing it at all:
The interface
The Druk window is divided into four areas:- File tree (left sidebar) — shows the project directory. Keyboard and mouse both work for navigation.
- Tab strip (top) — one tab per open file. Preview tabs are shown in italics; pinned tabs are normal weight.
- Editor (main area) — the active file. Syntax highlighting, git gutter marks, and LSP diagnostics all appear here.
- Status bar (bottom) — shows the current git branch and ahead/behind counts (e.g.
⎇ main ↑2 ↓1 ~3), unsaved state, and the cursor position.
Essential navigation
Moving between the tree and editor
| Action | Key |
|---|---|
| Tree → editor | Tab |
| Editor → tree | Esc |
| Show / hide sidebar | Ctrl+B |
Navigating the file tree
| Action | Key |
|---|---|
| Move up / down | ↑ / ↓ |
| Open / close a folder | → / ← |
| Open a file | Enter |
| New file | a |
| New folder | A |
| Rename | r |
| Delete | d |
Working with tabs
Opening a file from the tree creates a preview tab (shown in italics). The next file you open replaces it. To pin a tab permanently, double-click it or start editing the file.| Action | Key |
|---|---|
| Save | Ctrl+S |
| Close tab | Ctrl+W |
| Switch between open tabs | Ctrl+T |
| Previous / next tab | Ctrl+Opt+← / Ctrl+Opt+→ |
| Reopen closed tab | Ctrl+Opt+T |
| Quit | Ctrl+Q |
Ctrl+C copies selected text when there is a selection, and quits when there is nothing selected — so it never discards unsaved work unexpectedly. Closing a tab with unsaved edits always prompts first.Discovering features
Druk has three ways to find and invoke any feature without memorising shortcuts:Command palette (F1)
Press
F1 (or Ctrl+Opt+P) to open the command palette. Every feature in Druk is listed here. Start typing to filter the list instantly. This is the best starting point when you are unsure of a shortcut — the palette shows the key binding for every command beside its name.Fuzzy file opener (Ctrl+P)
Press
Ctrl+P (or Ctrl+O) to open any file in the project by typing a few characters of its name or path — the same workflow as VS Code.Mouse support
Druk has full mouse support throughout the interface. No configuration is required — it works in any terminal that sends mouse events:- Click any tab, tree row, or position in the editor to move focus or reposition the cursor.
- Double-click a preview tab to pin it.
- Drag the sidebar edge left or right to resize it interactively.
- Scroll any pane (file tree, editor, search results, git panel) with the mouse wheel.