vifm: Add doc|docx preview and nvim opening

Added preview and opening of doc(x) files with nvim.
Makes use of docx2txt, catdoc to display the files, meaning they are
required.

Added some spellchecking words.
This commit is contained in:
Marty Oehme 2020-07-28 18:15:26 +02:00
parent e01b4c885c
commit 8a5b45f41f
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
4 changed files with 19 additions and 1 deletions

6
.gitignore vendored
View file

@ -19,3 +19,9 @@ sponsorblock.txt
# ignore any just-in-time settings that took place in qutebrowser # ignore any just-in-time settings that took place in qutebrowser
qutebrowser/.config/qutebrowser/autoconfig.yml qutebrowser/.config/qutebrowser/autoconfig.yml
# ignore vifm & ueberzug utility files
vifm-help.txt
vifmimgpdfpage
vifmimgpdffile
vifminfo

View file

@ -40,3 +40,7 @@ transnationalism
heroization heroization
technologization technologization
Kyūshū Kyūshū
Qing
analyses
megaprojects
weaponization

View file

@ -0,0 +1,6 @@
This directory is dedicated for user-supplied scripts/executables.
vifm modifies its PATH environment variable to let user run those
scripts without specifying full path. All subdirectories are added
as well. File in a subdirectory overrules file with the same name
in parent directories. Restart might be needed to recognize files
in newly created or renamed subdirectories.

View file

@ -334,8 +334,10 @@ fileviewer *.7z 7z l %c
" Office files " Office files
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f & filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f &
fileviewer *.doc catdoc %c | nvim
fileviewer *.doc catdoc %c fileviewer *.doc catdoc %c
fileviewer *.docx docx2txt.pl %f - filextype *.docx docx2txt %f - | nvim
fileviewer *.docx docx2txt %f -
" TuDu files " TuDu files
filetype *.tudu tudu -f %c filetype *.tudu tudu -f %c