1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

adding pdf and image preview to vifm

This commit is contained in:
TiynGER
2019-11-23 11:02:54 +01:00
parent 3ea153328f
commit a3ddfdd633
4 changed files with 82 additions and 4 deletions

View File

@@ -172,7 +172,11 @@ command! reload :write | restart
" Pdf
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
fileviewer *.pdf pdftotext -nopgbrk %c -
fileviewer *.pdf
\ vifmimg pdfpreview %px %py %pw %ph %c
\ %pc
\ vifmimg clear
"\ pdftotext -nopgbrk %c -
" PostScript
filextype *.ps,*.eps,*.ps.gz
@@ -238,7 +242,13 @@ filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ {View in shotwell}
\ shotwell,
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ identify %f
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
fileviewer *.gif
\ vifmimg gifpreview %px %py %pw %ph %c
\ %pc
\vifmimg clear
" OpenRaster
filextype *.ora