1
0
Fork 0

switch to glow

This commit is contained in:
Luca Bilke 2024-01-31 08:21:21 +01:00
parent a279b37728
commit c84dd0b0f5
2 changed files with 11 additions and 1 deletions

10
.config/glow/glow.yml Normal file
View File

@ -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

View File

@ -86,7 +86,7 @@ mimetest() {
image/*) image "$f" "$w" "$h" "$x" "$y" ;;
video/*) video "$f" "$w" "$h" "$x" "$y" ;;
*opendocument*) run odt2txt "$f" ;;
*/markdown) run mdcat "$f" ;;
*/markdown) run glow "$f" --width "$w";;
*/html) run lynx -dump "$f" ;;
*) return 1 ;;
esac