add custom previewer file
This commit is contained in:
parent
3bdc9a62c1
commit
d96eab75d3
2
lfrc
2
lfrc
|
@ -115,3 +115,5 @@ cmd thumbs ${{
|
||||||
feh -t -y128 -E128 &
|
feh -t -y128 -E128 &
|
||||||
fi
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
set previewer /home/ray/.config/lf/previewer.sh
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
case "$1" in
|
||||||
|
*.tar*) tar tf "$1";;
|
||||||
|
*.zip) unzip -l "$1";;
|
||||||
|
*.rar) unrar l "$1";;
|
||||||
|
*.7z) 7z l "$1";;
|
||||||
|
*.pdf) pdftotext "$1" -;;
|
||||||
|
*) bat --plain --color always --theme base16 "$1";;
|
||||||
|
esac
|
Loading…
Reference in New Issue