5 ms·
Show HN: Dirsv – dir browser, battery packed Markdown previewers
This is my 2nd time sharing this tool. It is a local directory browser with live reload. Single Go binary, embedded web UI.
IMO, it is a better markserv [0] that supports more features I needed for my workflow with markdown and general dir browsing:
- Math heavy note.
- Tech design docs with heavy mermaid diagrams.
- Code file, images, preview. Last time I used markserv, when browsing into an unsupported text files, it is downloaded. dirsv will render the file with syntax highlighting.
I also built the companion nvim for this: https://github.com/letientai299/dirsv.nvim https://github.com/letientai299/dirsv.nvim
Compare to my last Show HN sharing, many bugs was fixed, and a few changes was made:
- Sync scroll, cursorline and visual selection between nvim plugin can the previewer.
- Change default port ranges to 3579+, to avoid conflict with many other tools that like to use 8xxx range.
Disclaimer: this was built with claude code, and, I do code review seriously to make sure I can still work on it without any AI tools.
[0]: https://github.com/markserv/markserv https://github.com/markserv/markserv