Markdown previews in lf with leaf 0 ▲ DJ Adams 58 days ago · Tech · hide · Fediverse post Today I'm finding I'm working Markdown even more, and the delta is mostly in read-mode, rather than write-mode. Reading agent and skill files, intent summaries, product requirement descriptions and more, especially in the context of Joule Studio. I use the terminal file manager lf which is very configurable. The configuration mechanisms include a previewer file which is a shell script that calls different tools to preview different file types. Until just now, mine looked like this: #!/bin/sh case "$(basename "$1")" in Dockerfile | *.dockerfile) highlight -O ansi --syntax Dockerfile "$1" ;; *.jpeg | *.jpg | *.png) exiftool "$1" ;; *.json) jq -C . "$1" ;; *) batcat --style plain --color always "$1" ;; esac Here, I use specific tools for a small number of content types, and fall back to the default of bat for everything else. Separately from the lf context I've been using glow to render Markdown in the terminal. It does a lovely job. But running it in the context of another tool like lf… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town