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
Hey if there's significant overlap, what about coming and collab-ing on https://github.com/joshka/tui-markdown? (crate + cli, rust / ratatui / crossterm based)
If you like the man page aesthetic, using pandoc with groff is the most readable way to read markdown on the terminal I've found:
mdless() {
if command -v pandoc >/dev/null; then
if [[ -z "$1" ]]; then
cat | pandoc -s -f markdown -t man | groff -T utf8 -man | less
else
pandoc -s -f markdown -t man "$*" | groff -T utf8 -man | less
fi
else
less "$@"
fi
}
This is an odd comment on "Hacker" news. There's a joy to be had in making things like this, even though there are better alternatives and it's often a weird thing to do in the first place. I often do not post the things I create here and elsewhere because I dread this kind of feedback. What do you hope OP takes away from your post?
juancn|21 days ago
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.
taf2|21 days ago
pss314|20 days ago
jonaustin|20 days ago
https://github.com/charmbracelet/glow
llimllib|21 days ago
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
verdverm|21 days ago
Charm Glamour with a view port uses basic vi keybinds as well
smoyer|20 days ago
metalliqaz|20 days ago
joshka|20 days ago
Blackarea|20 days ago
nikvdp|20 days ago
maxsimb|21 days ago
eyjafjalajokull|21 days ago
kalterdev|21 days ago
w0m|20 days ago
(not to poo on OP - I dig a clean TUI renderer, I have BAT installed for a reason)
munk-a|21 days ago
socceroos|20 days ago
gigatexal|20 days ago
syngrog66|20 days ago
taf2|20 days ago
bainganbharta|21 days ago
[deleted]
ghost-of-dmr|20 days ago
Stop trying to re-invent the wheel when the tools are already there.
collinvandyck76|20 days ago
taf2|20 days ago