Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

I found this program: https://github.com/cirala/vifmimg for previewing pdf files, image files, video files, etc., but I was wondering it it was possible to do the same with office files, e.g. .docx, .doc, and .odt for "word"-type files, .xlsx, .xls and .csv for "excel"-type files, and .pptx, .ppt, etc. for "powerpoint"-type files?

1 Answer

+1 vote
by
selected by
 
Best answer

I only know about catdoc for *.doc and docx2txt for *.docx. Both translate things to text.

Maybe something like LibreOffice can render first page of a document into image, then it could be integrated into vifmimg, but I haven't seen anything like that (didn't really look for it either).

by
edited by

I figured out that I can use pandoc for .csv, .odt, .docx, and .rtf.
I can also use catdoc for .doc as you suggested.
Finally, I can use xlsx2csv and xls2csv, then pipe into pandoc for .xlsx or .xls respectively.

Still looking for a way to preview .pptx files, but probably none will be found.

by

I figured out that I can use unoconv to convert .pptx to .pdf, then preview that using vifmimg.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.

Support Ukraine
...