lf: open HTML files in the browser
This commit is contained in:
@@ -36,6 +36,7 @@ set cleaner ~/.config/lf/lf_kitty_clean
|
|||||||
# text files and a file opener for the rest.
|
# text files and a file opener for the rest.
|
||||||
cmd open &{{
|
cmd open &{{
|
||||||
case $(file --mime-type -Lb $f) in
|
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";;
|
text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
||||||
application/json) lf -remote "send $id \$$EDITOR \$fx";;
|
application/json) lf -remote "send $id \$$EDITOR \$fx";;
|
||||||
video/*) movie $fx > /dev/null 2> /dev/null;;
|
video/*) movie $fx > /dev/null 2> /dev/null;;
|
||||||
|
|||||||
Reference in New Issue
Block a user