Bugfix preview pdf
This commit is contained in:
parent
306ebf8833
commit
ef4d3d90ae
1 changed files with 4 additions and 3 deletions
|
@ -47,8 +47,8 @@ video() {
|
|||
}
|
||||
|
||||
pdf() {
|
||||
[ ! -f "$CACHEFILE" ] && pdftoppm -png -singlefile "$1" "$CACHEFILE" -scale-to 1024
|
||||
draw "$CACHEFILE"
|
||||
[ ! -f "$CACHEFILE.png" ] && pdftoppm -png -singlefile "$1" "$CACHEFILE" -scale-to 1024
|
||||
draw "$CACHEFILE.png"
|
||||
}
|
||||
|
||||
epub() {
|
||||
|
@ -80,7 +80,8 @@ main() {
|
|||
video "$1";;
|
||||
inode/directory)
|
||||
[ -z "${1##*/..*}" ] && echo || exa -Fa --color always "$1";;
|
||||
*);;
|
||||
*)
|
||||
text "$1";;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue