switch glow out for mdless
This commit is contained in:
parent
f0711d419b
commit
d9bbc6ec27
2 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ mimetest() {
|
|||
*/pkix-cert) run openssl x509 -text -noout -in "$f" ;;
|
||||
*opendocument*) run odt2txt "$f" ;;
|
||||
*/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"
|
||||
;;
|
||||
*/html) run lynx -dump "$f" ;;
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
dir = "~/Documents/notes"
|
||||
|
||||
[tool]
|
||||
fzf-preview = "glow -s '$XDG_CONFIG_HOME/glow/style.json' {-1}"
|
||||
fzf-preview = "mdless {-1}"
|
||||
|
|
Loading…
Add table
Reference in a new issue