logoalt Hacker News

Markdown CLI viewer with VI keybindings

46 pointsby taf2today at 5:51 PM16 commentsview on HN

Comments

juancntoday at 6:19 PM

A screenshot would be a nice addition to the readme.

It seems is only pure text (no support for image extensions of a terminal, just a link to the image), based on this: https://github.com/taf2/mdvi/blob/master/src/renderer.rs

It looks nice and clean code.

show 1 reply
pss314today at 9:33 PM

Markdown reader using find, fzf and lnav

  find . \( -path '*/vendor/*' -or -path '*/.git/*' -or -path '*/node_modules/*' \) -prune -or -type f -name "*.md" -print | fzf | xargs lnav
In the above command, the find command excludes directories such as "vendor" (golang), ".git" (git) and "node_modules" (nodejs). The lnav itself provides the markdown support https://lnav.org/2022/08/06/markdown-support.html
llimllibtoday at 8:03 PM

I created one I like: https://github.com/llimllib/mdriver

it can echo images with kitty image protocol, and streams the output, which I use to show LLM output as it arrives

It doesn't handle paging - you can pipe it to `less` or whatever pager for that

Blackareatoday at 9:59 PM

3 source files, nice code, no vibe-coding slob, nice little project... That's rare these days

gigatexaltoday at 10:31 PM

You had me at vi bindings

maxsimbtoday at 6:26 PM

https://github.com/Vagab/mark similar tool, but with editing enabled also!

show 1 reply
verdvermtoday at 6:26 PM

https://github.com/charmbracelet/glamour

Charm Glamour with a view port uses basic vi keybinds as well

kalterdevtoday at 7:25 PM

Isn’t vi good enough?

show 2 replies
syngrog66today at 8:40 PM

ie. vim

show 1 reply
bainganbhartatoday at 7:28 PM

[dead]