Enable vifm image previews

This commit is contained in:
Marty Oehme 2019-07-04 10:28:06 +02:00
parent 62610c82c5
commit ef7c6ba8c8
4 changed files with 179 additions and 1 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
# Check for existence of vifm command. If found, substitute vifm with it.
type vifm >/dev/null 2>&1 && alias vm=vifm
# Check for existence of vifmrun command. If found, substitute vifm with it.
type vifmrun >/dev/null 2>&1 && alias vifm=vifmrun

View file

@ -241,7 +241,9 @@ filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ {View in shotwell}
\ feh,
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ convert -identify %f -verbose /dev/null
\ vifmimg draw %px %py %pw %ph %c
\ %pc
\ vifmimg clear
" OpenRaster
filextype *.ora