Fix lf
This commit is contained in:
parent
cdb5477d52
commit
99325028cd
|
@ -33,7 +33,10 @@ locales \
|
|||
fzf \
|
||||
scrot `# screenshots` \
|
||||
libreadline-dev `# for nnn` \
|
||||
nnn `# nnn is file manager`
|
||||
nnn `# nnn is file manager` \
|
||||
pandoc `# pandoc onvers markdown to html` \
|
||||
cutycapt `# for converting html to image` \
|
||||
vifm `# vifm is file manager`
|
||||
|
||||
sudo locale-gen ru_RU
|
||||
sudo locale-gen ru_RU.UTF-8
|
||||
|
|
|
@ -32,12 +32,9 @@ case "$MIME" in
|
|||
*application/zip*)
|
||||
unzip -l "$1"
|
||||
;;
|
||||
# any plain text file that doesn't have a specific handler
|
||||
*text/plain*)
|
||||
*text/markdown*)
|
||||
pandoc $1 > /tmp/lf_preview.html && cutycapt --url=file:///tmp/lf_preview.html --out=/tmp/lf_preview.png && chafa -s "$2x$3" -f sixel /tmp/lf_preview.png
|
||||
;;
|
||||
*text/plain*)
|
||||
;;
|
||||
# any plain text file that doesn't have a specific handler
|
||||
*text/plain*)
|
||||
# return false to always repaint, in case terminal size changes
|
||||
|
|
Loading…
Reference in New Issue