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:
parent
e01b4c885c
commit
8a5b45f41f
4 changed files with 19 additions and 1 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -19,3 +19,9 @@ sponsorblock.txt
|
|||
|
||||
# ignore any just-in-time settings that took place in qutebrowser
|
||||
qutebrowser/.config/qutebrowser/autoconfig.yml
|
||||
|
||||
# ignore vifm & ueberzug utility files
|
||||
vifm-help.txt
|
||||
vifmimgpdfpage
|
||||
vifmimgpdffile
|
||||
vifminfo
|
||||
|
|
|
@ -40,3 +40,7 @@ transnationalism
|
|||
heroization
|
||||
technologization
|
||||
Kyūshū
|
||||
Qing
|
||||
analyses
|
||||
megaprojects
|
||||
weaponization
|
||||
|
|
6
vifm/.config/vifm/scripts/README
Normal file
6
vifm/.config/vifm/scripts/README
Normal 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.
|
|
@ -334,8 +334,10 @@ fileviewer *.7z 7z l %c
|
|||
|
||||
" Office files
|
||||
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f &
|
||||
fileviewer *.doc catdoc %c | nvim
|
||||
fileviewer *.doc catdoc %c
|
||||
fileviewer *.docx docx2txt.pl %f -
|
||||
filextype *.docx docx2txt %f - | nvim
|
||||
fileviewer *.docx docx2txt %f -
|
||||
|
||||
" TuDu files
|
||||
filetype *.tudu tudu -f %c
|
||||
|
|
Loading…
Reference in a new issue