diff --git a/doc.go b/doc.go index e5b14c6a..1704fcb3 100644 --- a/doc.go +++ b/doc.go @@ -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) diff --git a/docstring.go b/docstring.go index 20363ded..c5c538b8 100644 --- a/docstring.go +++ b/docstring.go @@ -341,7 +341,8 @@ 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. +size. If the total size of a directory is not calculated, it will be shown +as '-'. copy (default 'y') @@ -610,13 +611,12 @@ 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. 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 +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. 999 items are counted per directory at most, and bigger directories are shown as '999+'. dirfirst bool (default on) diff --git a/lf.1 b/lf.1 index 8f897543..f0a7311c 100644 --- a/lf.1 +++ b/lf.1 @@ -383,7 +383,7 @@ Select/unselect files that match the given glob. calcdirsize .EE .PP -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. +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 '-'. .PP .EX copy (default 'y') @@ -716,7 +716,7 @@ Cache directory contents. dircounts bool (default off) .EE .PP -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. 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+'. +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. 999 items are counted per directory at most, and bigger directories are shown as '999+'. .PP .EX dirfirst bool (default on)