HeadlinesBriefing favicon HeadlinesBriefing.com

RivoLink/leaf: Terminal Markdown Previewer Gets GUI-Like Upgrade

Hacker News •
×

RivoLink's Leaf brings a terminal Markdown previewer to life with a GUI-like experience, merging the efficiency of command-line tools with polished interface elements. The tool supports macOS, Linux, Android, and Windows via PowerShell, offering seamless installation through platform-specific scripts. Users can preview files instantly with `leaf TESTING.md`, enable watch mode for live updates, or use fuzzy search to open files (`leaf --picker`).

Key features include syntax highlighting for languages like Python and Dockerfile, LaTeX math rendering via Unicode conversion, and a table of contents sidebar for navigating complex documents. Windows users face unique challenges: the tool requires the Microsoft Visual C++ Redistributable runtime, and file replacements may fail if the executable is locked. The project’s GitHub repository provides troubleshooting guides, including direct download links for Windows binaries.

Developer-centric shortcuts dominate the interface: `Ctrl+P` opens the fuzzy picker, `Shift+P` launches the directory browser, and `Ctrl+F` triggers search. Integration with AI workflows shines—users can pipe outputs from tools like `aichat` directly into Leaf for real-time previews. The roadmap teases themes, code block copying, and performance optimizations for large files.

Leaf’s terminal-native design caters to developers who prefer minimal GUI distractions while demanding rich document previews. Its ability to handle YAML frontmatter and Unicode box-drawing tables sets it apart from basic Markdown viewers. For instant setup, the npm package (`@rivolink/leaf`) or direct binary installation ensures accessibility across platforms. The tool redefines terminal productivity, proving GUI-like experiences can thrive in text-based environments.