···144144145145## Features
146146147147-- ✅ **Watch mode** `--watch` / `-w` — reloads every 250ms, with `⟳ reloaded` flash feedback
148148-- ✅ `leaf --watch` can start from the picker and begin watching after file selection
149149-- ✅ Syntax highlighting with common language aliases like `py`, `cpp`, `json`, `toml`, `ps1`, and `dockerfile`
150150-- ✅ Unicode box-drawing tables with left / center / right alignment
151151-- ✅ TOC sidebar with active section tracking and two-level navigation
152152-- ✅ Search with match highlighting, `/`, `Ctrl+F`, and `n` / `N`
153153-- ✅ Code blocks `┌─ lang ───┐`
154154-- ✅ LaTeX math rendering — inline `$...$` and display `$$...$$` with Unicode conversion via `unicodeit`
155155-- ✅ LaTeX code blocks `` ```latex `` / `` ```tex `` rendered as formula blocks
156156-- ✅ Bold, italic, strikethrough, blockquotes, lists, and horizontal rules
157157-- ✅ YAML frontmatter is ignored in both preview and TOC
158158-- ✅ Native stdin input with bounded size
159159-- ✅ `leaf --update` to fetch, verify via published SHA256, and install the latest release on supported platforms
160160-- ✅ Fuzzy Markdown picker when launched without a file, or anytime with `Ctrl+P`
161161-- ✅ Classic directory browser picker with `leaf --picker`, or anytime with `Shift+P`
162162-- ✅ Theme picker with runtime preview
163163-- ✅ Help popup with in-app shortcuts
147147+- **Live preview** — Watch mode with automatic reload and visual feedback.
148148+- **File picker** — Fuzzy Markdown picker, directory browser, and watch after selection.
149149+- **Editor integration** — Open the current file in your preferred editor.
150150+- **Rich Markdown rendering** — Tables, lists, blockquotes, rules, bold, italic, and strikethrough.
151151+- **Syntax highlighting** — Common aliases like `py`, `cpp`, `json`, `toml`, `ps1`, `dockerfile`.
152152+- **LaTeX support** — Inline, block, and `latex` / `tex` code blocks rendered as formulas.
153153+- **Navigation** — TOC sidebar, active section tracking, heading jumps, and search.
154154+- **Terminal UX** — Theme picker, help popup, file path popup, mouse and keyboard support.
155155+- **CLI friendly** — stdin support and `leaf --update` with SHA256 verification.
164156165157## Typical AI Workflow
166158···171163# Terminal 2: live watch
172164leaf --watch notes.md
173165```
174174-175175-## Roadmap
176176-177177-- [x] Themes (light / custom)
178178-- [ ] Copy code block `y`
179179-- [ ] Code block horizontal scroll
180180-- [ ] Improve search performance on large files
181166182167## Troubleshooting
183168