This commit is contained in:
Digital Studium 2024-03-17 12:07:45 +03:00
parent cdb5477d52
commit 99325028cd
2 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,10 @@ locales \
fzf \ fzf \
scrot `# screenshots` \ scrot `# screenshots` \
libreadline-dev `# for nnn` \ 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
sudo locale-gen ru_RU.UTF-8 sudo locale-gen ru_RU.UTF-8

View File

@ -32,12 +32,9 @@ case "$MIME" in
*application/zip*) *application/zip*)
unzip -l "$1" unzip -l "$1"
;; ;;
# any plain text file that doesn't have a specific handler *text/markdown*)
*text/plain*)
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 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 # any plain text file that doesn't have a specific handler
*text/plain*) *text/plain*)
# return false to always repaint, in case terminal size changes # return false to always repaint, in case terminal size changes