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.

Druk has two search modes: a fast in-file search that lets you navigate and replace matches in the open buffer, and a project-wide search that scans every file under the project root and groups results by file. Both modes share the same controls for case-sensitivity, whole-word matching, and regex, and both can be reached entirely from the keyboard with no configuration required.
Whatever text you have selected when you open the search panel is automatically pre-filled as the query — a fast path for “find more uses of this thing I’m looking at right now.”
Press Ctrl+F to open the in-file search panel. The panel appears at the bottom of the editor, focused and ready to type. Matches are highlighted in the buffer as you type, and the selected match is scrolled into view.
1

Type your query

Start typing — matches highlight in real time. The match count appears beside the active toggles.
2

Navigate matches

Press Enter to jump to the next match, or Shift+Enter to go to the previous one.
3

Open the replace field

Press Tab inside the search panel to open an inline replace field below the search box.
4

Replace

With the replace field open, press Enter to replace the currently selected match and advance to the next one. Press Ctrl+A to replace all matches in the file at once.
Key (while search is open)Action
TabOpen the replace field
EnterJump to next match / replace selected match (with replace open)
Ctrl+AReplace all matches in the file
EscClose the search panel
Press Ctrl+R (or Ctrl+Opt+F) to search across every file in the project. Results appear in a list grouped by file, with each row showing the line number and the surrounding text with the match highlighted. The lines around the currently selected match are previewed in a strip beneath the results list.
Use Ctrl+Opt+F for project search when vim mode is enabled, because Ctrl+R is bound to redo in vim’s Normal mode.
Project search walks files breadth-first from the project root, so files nearest the root are found first. It automatically skips node_modules, dist, build, out, coverage, target, .turbo, and .cache directories.
Key (in project search)Action
/ Move between matches
EnterOpen the file at the matched line
TabFold / unfold the results for the file under the cursor
Pressing Tab on a file with many matches folds its result group so other files are no longer buried. Press Tab again to expand it.

Search Toggles

While any search panel is open, three modifier keys toggle matching behavior on and off. The active toggles are shown inline beside the match count so you always know what mode you are in.
KeyToggle
Ctrl+CCase-sensitive — match exact case when on
Ctrl+WWhole-word — only match when the query is surrounded by word boundaries
Ctrl+RRegex — treat the query as a regular expression
These toggles are active only while the search panel is open and do not interfere with the editor’s own Ctrl+C / Ctrl+R bindings when the panel is closed.
Query:  util
Matches: "utility", "utilities", "util"

Replace in Project

Project search itself does not have a bulk-replace field — use it to locate every occurrence, then navigate to each one and use the in-file replace panel (Ctrl+FTab) to replace individual matches or all matches in that file. This keeps replacements explicit and gives you a chance to review each file before committing changes.

Build docs developers (and LLMs) love