Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by

at the bottom of my configuration I would like to create a catch-all like preview, one for all files that contains readable text and one, below, for all other files, how can I achieve this without manually specify file extensions?

I tried with

fileviewer <text/plain> mycommand
fileviewer * mycommand

but I'm missing something in the logic.

1 Answer

0 votes
by
edited by
 
Best answer

Looks correct to me, although you may want to change <text/plain> to <text/*>. It's also possible that some application-specific mime types need to be listed, you can look those up in Ctrl+G dialog when a file isn't previewed as you expect.

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.
...