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.

Display number of files in directory; not size

+1 vote
asked Jan 12, 2016 in vifm by anonymous

Why does vifm display some kilobytes next to directories instead of showing the number of files they contain?

I'd like to know :

  • How to display the number of files?
  • How to display the size of the directory (incl. all its children content)?

1 Answer

+1 vote
answered Jan 12, 2016 by xaizek

Why does vifm display some kilobytes next to directories instead of showing the number of files they contain?

Displaying size of directory (i.e., size of file list) costs nothing and won't harm performance in any way.

How to display the number of files?

0.8.1 (beta for now) adds new option 'dirsize', which can be set to nitems to compute number of items in directories (direct children, not whole subtree).

How to display the size of the directory (incl. all its children content)?

Use ga and gA keys. The first one will skip directories of presumably known size, the second one always traverses whole subtree.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as spam, but this is not a perfect place for it.
...