Use xdg-open to open video files

This commit is contained in:
Yorick Barbanneau 2024-03-10 19:01:48 +01:00
parent e94b71fa67
commit 293aed1020

View file

@ -170,13 +170,14 @@ command! reload :write | restart full
" program. There is also %FOREGROUND, which is useful for entering passwords.
fileviewer .*/,*/ ls --group-directories-first --classify --color %c
fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
filetype {*.pdf},<application/pdf>
filetype {*.pdf},<application/pdf>,<video/*>
\ xdg-open
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ chafa -f sixel --polite on -s %pwx%ph --animate off %c
\ %pd %N
filetype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ xdg-open
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt tar -tf %f
fileviewer *.tgz,*.tar.gz tar -tzf %c
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c