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

Is it possible to conjure a :filter that excludes all files?

Would like to display the tree view, but only with folders.

1 Answer

0 votes
by

Yes, all directory entries have implicit trailing slash which can be used for searching or filtering. Try

:filter! {*/}
by

It does work, albeit with a little side-effect:

Could you think of a way to filter-out the .. as well?

by

You can't filter-out those, but you can prevent them from being added via 'dotdirs':

set dotdirs-=treeleafsparent
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.
...