From c6378a73c5fa5bfefa6fdcf865c3e3245d7290e5 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 20 Oct 2020 21:24:17 -0400 Subject: RIP bat, highlight is king --- .config/vifm/vifmrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.config/vifm/vifmrc') diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 18e136e..2c10c5d 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -138,7 +138,7 @@ set rulerformat= " CSV/Excel filetype *.xlsx libreoffice %c %i -fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw +" fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw " HTMLs fileviewer *.html w3m -dump %c @@ -146,8 +146,10 @@ filextype *.html,*.htm firefox %f 2>/dev/null & " Text based files filetype <*.csv,text/*> nvim -fileviewer <*.csv,text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p -fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p +fileviewer <*.csv,text/*> env -uCOLORTERM highlight -i %c --stdout -O ansi +" fileviewer <*.csv,text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p +fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM highlight -i %c --stdout -O ansi +" fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p " PDFs filextype *.pdf zathura %c %i & -- cgit v1.2.3