Skip to content

Getting Started

mdt is a fast, terminal-based markdown viewer and editor built with Rust. It lets you browse, read, and edit markdown files directly in your terminal with rich rendering, syntax highlighting, and a built-in file browser.

mdt welcome screen with ASCII art logo and keybinding hints
  • Browse files with a collapsible file tree, fuzzy finder, and file management operations
  • Preview markdown with full rendering of headings, code blocks, tables, lists, blockquotes, and more
  • Edit files with a built-in vim-style text editor
  • Live preview your edits in a real-time split pane
  • Search within documents and across the file tree
Markdown preview with code blocks, tables, and lists

Install mdt from crates.io:

Terminal window
cargo install mdtui

Then open a directory or file:

Terminal window
mdt # opens current directory
mdt ~/notes # opens a specific directory
mdt README.md # opens a specific file

That’s it. You’ll see the file tree on the left and a markdown preview on the right. Use j/k to scroll, Enter to open files, and q to quit.