Update docs of calcdirsize and dircounts (#827)

* Clarify what `-` means in the `size` info field.
* Reflect the fact that we no longer display the size of the
directory itself.
This commit is contained in:
SeekingBlues authored and GitHub committed 2022-05-09 14:28:06 +03:00
1 parent a89f0242bf
commit addb6e243e
3 files changed
+15 -15

No files matched your search

+5 -5
View File
@@ -327,6 +327,7 @@ Select/unselect files that match the given glob.
Calculate the total size for each of the selected directories.
Option 'info' should include 'size' and option 'dircounts' should be disabled to show this size.
If the total size of a directory is not calculated, it will be shown as '-'.
copy (default 'y')
@@ -578,12 +579,11 @@ Cache directory contents.
dircounts bool (default off)
When this option is enabled, directory sizes show the number of items inside instead of the size of directory file.
The former needs to be calculated by reading the directory and counting the items inside.
The latter is directly provided by the operating system and it does not require any calculation, though it is non-intuitive and it can often be misleading.
This option is disabled by default for performance reasons.
When this option is enabled, directory sizes show the number of items inside instead of the total size of the directory, which needs to be calculated for each directory using 'calcdirsize'.
This information needs to be calculated by reading the directory and counting the items inside.
Therefore, this option is disabled by default for performance reasons.
This option only has an effect when 'info' has a 'size' field and the pane is wide enough to show the information.
A thousand items are counted per directory at most, and bigger directories are shown as '999+'.
999 items are counted per directory at most, and bigger directories are shown as '999+'.
dirfirst bool (default on)