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

Hello,

When pressing 'w' to show preview, I want it to only affect files, not directories. I'm sure there has to be a way to do it via vifmrc but I can't figure it out.

The reason why I want this feature, is because some directories have thousands of subdirs and files, so vifm runs the tree command and takes a long time to load, and makes vifm freeze for a few seconds when trying to browse those dirs.

Thanks for the assist.

1 Answer

+2 votes
by
selected by
 
Best answer

Hi,

Preview actually stops after collecting enough output of an external command and builtin directory preview stops similarly, but it might have to read several directories to be able to sort things properly.

You can add something like

fileviewer */ echo Not previewing directory

And you'll get that message instead of the preview as a reminder.

by

That works! thank you.

by

pretty easy solution!

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