1
0
Fork 0

switch glow out for mdless

This commit is contained in:
Luca Bilke 2024-08-08 15:09:28 +02:00
parent f0711d419b
commit d9bbc6ec27
2 changed files with 2 additions and 2 deletions
.config
lf/preview
zk

View file

@ -67,7 +67,7 @@ mimetest() {
*/pkix-cert) run openssl x509 -text -noout -in "$f" ;; */pkix-cert) run openssl x509 -text -noout -in "$f" ;;
*opendocument*) run odt2txt "$f" ;; *opendocument*) run odt2txt "$f" ;;
*/markdown) */markdown)
[ ! -f "${CACHE}.txt" ] && run glow -s "$XDG_CONFIG_HOME/glow/style.json" "$f" --width "$w" >"${CACHE}.txt" [ ! -f "${CACHE}.txt" ] && run mdless "$f" --width "$w" >"${CACHE}.txt"
text "${CACHE}.txt" text "${CACHE}.txt"
;; ;;
*/html) run lynx -dump "$f" ;; */html) run lynx -dump "$f" ;;

View file

@ -2,4 +2,4 @@
dir = "~/Documents/notes" dir = "~/Documents/notes"
[tool] [tool]
fzf-preview = "glow -s '$XDG_CONFIG_HOME/glow/style.json' {-1}" fzf-preview = "mdless {-1}"