From 4c5ca29f6e44f60b5640d3bfab3fc8a922fc6a23 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Thu, 5 Nov 2026 09:50:35 +0100 Subject: [PATCH] lf: open HTML files in the browser --- .config/lf/lfrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 8d1e405..7a23a2e 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -36,6 +36,7 @@ set cleaner ~/.config/lf/lf_kitty_clean # text files and a file opener for the rest. cmd open &{{ case $(file --mime-type -Lb $f) in + text/html) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; text/*) lf -remote "send $id \$$EDITOR \$fx";; application/json) lf -remote "send $id \$$EDITOR \$fx";; video/*) movie $fx > /dev/null 2> /dev/null;;