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.

KeyAction
j / Scroll down one line
k / Scroll up one line
d / PgDnScroll down one page
u / PgUpScroll up one page
g / HomeGo to top
G / EndGo to bottom
q / EscQuit

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