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.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.
In-File Search
PressCtrl+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.
Type your query
Start typing — matches highlight in real time. The match count appears beside the active toggles.
Open the replace field
Press
Tab inside the search panel to open an inline replace field below the search box.| Key (while search is open) | Action |
|---|---|
Tab | Open the replace field |
Enter | Jump to next match / replace selected match (with replace open) |
Ctrl+A | Replace all matches in the file |
Esc | Close the search panel |
Project Search
PressCtrl+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.node_modules, dist, build, out, coverage, target, .turbo, and .cache directories.
| Key (in project search) | Action |
|---|---|
↑ / ↓ | Move between matches |
Enter | Open the file at the matched line |
Tab | Fold / unfold the results for the file under the cursor |
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.| Key | Toggle |
|---|---|
Ctrl+C | Case-sensitive — match exact case when on |
Ctrl+W | Whole-word — only match when the query is surrounded by word boundaries |
Ctrl+R | Regex — treat the query as a regular expression |
Ctrl+C / Ctrl+R bindings when the panel is closed.
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+F → Tab) 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.