switch to glow
This commit is contained in:
parent
a279b37728
commit
c84dd0b0f5
|
@ -0,0 +1,10 @@
|
||||||
|
# style name or JSON path (default "auto")
|
||||||
|
style: "auto"
|
||||||
|
# show local files only; no network (TUI-mode only)
|
||||||
|
local: true
|
||||||
|
# mouse support (TUI-mode only)
|
||||||
|
mouse: false
|
||||||
|
# use pager to display markdown
|
||||||
|
pager: false
|
||||||
|
# word-wrap at width
|
||||||
|
width: 80
|
|
@ -86,7 +86,7 @@ mimetest() {
|
||||||
image/*) image "$f" "$w" "$h" "$x" "$y" ;;
|
image/*) image "$f" "$w" "$h" "$x" "$y" ;;
|
||||||
video/*) video "$f" "$w" "$h" "$x" "$y" ;;
|
video/*) video "$f" "$w" "$h" "$x" "$y" ;;
|
||||||
*opendocument*) run odt2txt "$f" ;;
|
*opendocument*) run odt2txt "$f" ;;
|
||||||
*/markdown) run mdcat "$f" ;;
|
*/markdown) run glow "$f" --width "$w";;
|
||||||
*/html) run lynx -dump "$f" ;;
|
*/html) run lynx -dump "$f" ;;
|
||||||
*) return 1 ;;
|
*) return 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue