Skip to content

Search

mdt provides two types of search: in-document search for finding text within a markdown file, and file tree search for filtering files by name.

Press / while the preview or editor pane is focused to start a search. Type your query and press Enter to confirm. mdt highlights all matches and displays the total match count.

KeyAction
nJump to the next match
NJump to the previous match
EscCancel the search

Match navigation wraps around: pressing n on the last match takes you back to the first, and pressing N on the first match takes you to the last.

Press / while the file tree is focused to filter the tree in real time. As you type, only files and directories matching your query remain visible. This is useful for narrowing down a large project to the files you care about.

To clear the filter, press Esc.

For jumping to a specific file quickly, use the fuzzy file finder with ff. Unlike the file tree search which filters the visible tree, the fuzzy finder searches across all files in the project and ranks results by match quality. See the File Browser page for details.