Features
- 📝 Display markdown files in terminal with formatted output
- 🔄 Live refresh when file changes (100ms polling)
- 🎨 Clean bordered display
- 🖥 Full terminal width support
- 👻 Hidden cursor for distraction-free viewing
- ⌨ Arrow key navigation for switching between multiple files
- ⚡ Zero dependencies - pure Node.js
Installation
npm (Recommended)
npm install -g mdtail
From Source
git clone https://github.com/super3/mdtail.dev.git && cd mdtail.dev
npm install && npm link # Install dependencies and mdtail command globally
Usage
mdtail # Watch TODO.md (default)
mdtail README.md # Watch specific file
mdtail *.md # Watch all markdown files with tabs
mdtail TODO.md README.md # Watch multiple specific files
mdtail --help # Show help
Navigation
- Use ← / → arrow keys to switch between tabs when watching multiple files
- Press Ctrl+C to exit