lf: open HTML files in the browser

This commit is contained in:
Daniele Fucini
2026-11-05 09:50:35 +01:00
parent 8bfd577b20
commit 4c5ca29f6e
+1
View File
@@ -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;;