mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-12 20:41:16 +02:00
adding pdf and image preview to vifm
This commit is contained in:
@@ -7,7 +7,7 @@ export EDITOR="nvim"
|
||||
export TERMINAL="st"
|
||||
export BROWSER="firefox"
|
||||
export READER="zathura"
|
||||
export FILE="vifm"
|
||||
export FILE="vifmrun"
|
||||
export SUDO_ASKPASS="$HOME/.local/bin/tools/dmenupass"
|
||||
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
|
||||
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
||||
@@ -18,7 +18,7 @@ export VIDEO="mpv"
|
||||
export AUDIO="mpv"
|
||||
export TABLE="sc-im"
|
||||
export IMAGE="sxiv"
|
||||
export LATEX="vim"
|
||||
export LATEX="nvim"
|
||||
export MAIL="thunderbird"
|
||||
export MUSIC="ncmpcpp"
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user