Markdown previews in lf with leaf 0 ▲ DJ Adams 1 hour ago · Tech · hide · 0 comments 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… No comments yet. Log in to reply on the Fediverse. Comments will appear here.