From 99325028cdb59a5edd35cd29965c0027bd46d0ff Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 17 Mar 2024 12:07:45 +0300 Subject: [PATCH] Fix lf --- install_software.sh | 5 ++++- lf_preview.sh | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install_software.sh b/install_software.sh index 09f2401..571fdf5 100755 --- a/install_software.sh +++ b/install_software.sh @@ -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 diff --git a/lf_preview.sh b/lf_preview.sh index 1284b9f..459b71c 100755 --- a/lf_preview.sh +++ b/lf_preview.sh @@ -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