Usage
Basic Usage
Open a Markdown file:
leaf README.md
Open the file picker to browse and select files:
leaf
Watch Mode
Auto-reload when the file changes on disk:
leaf --watch README.md
leaf -w README.md
Piping from Stdin
Pipe Markdown content from any tool:
cat notes.md | leaf
echo "# Hello" | leaf
claude "explain Rust" | leaf
Maximum stdin size: 8 MB.
Navigation
| Key | Action |
|---|---|
j / ↓ | Scroll down one line |
k / ↑ | Scroll up one line |
d / PgDn | Scroll down one page |
u / PgUp | Scroll up one page |
g / Home | Go to top |
G / End | Go to bottom |
q / Esc | Quit |
Command-Line Options
leaf [OPTIONS] [FILE]
Options:
-w, --watch Watch file for changes
--picker Open directory browser
--config Open configuration file
--update Update to latest version
-h, --help Show help
-V, --version Show version