Commit Graph
3 Commits
Author SHA1 Message Date
KenjiTakahashi ef340a533d Do binary check after calling previewer
Many files valid for previewer, such as archives, are treated as binary
and thus were not passed to the previewer.

Also sanitizes the previewer output, to some extent.
2016-09-01 21:11:03 +02:00
KenjiTakahashi 8d4a3192f1 Pass width and height to the previewer
This way, the script can do a little magic like

 head -n $2 $1 | highlight -O ansi --syntax ${1##*.}

to avoid reading whole (possibly huge) file.
2016-09-01 00:19:08 +02:00
KenjiTakahashi 14270be5ed Remove opener option from docs 2016-08-27 02:57:15 +02:00