Add option to specify binary or decimal sizes (#2118)
* Add option to specify binary or decimal sizes * Fix test case error message * Add documentation * Fix typo
This commit is contained in:
1 parent
8150586bc2
commit
4fe8f5a858
8 files changed
+103
-31
No files matched your search
@@ -188,6 +188,7 @@ The following options can be used to customize the behavior of lf:
|
||||
shellflag string (default '-c' for Unix and '/c' for Windows)
|
||||
shellopts []string (default '')
|
||||
showbinds bool (default true)
|
||||
sizeunits string (default 'binary')
|
||||
smartcase bool (default true)
|
||||
smartdia bool (default false)
|
||||
sortby string (default 'natural')
|
||||
@@ -1065,6 +1066,11 @@ showbinds (bool) (default true)
|
||||
|
||||
Show bindings associated with pressed keys.
|
||||
|
||||
sizeunits (string) (default binary)
|
||||
|
||||
Determines whether file sizes are displayed using binary units (1K is
|
||||
1024 bytes) or decimal units (1K is 1000 bytes).
|
||||
|
||||
smartcase (bool) (default true)
|
||||
|
||||
Override ignorecase option when the pattern contains an uppercase
|
||||
@@ -1106,9 +1112,6 @@ The | character splits the format string into sections. Any section
|
||||
containing a failed expansion (result is a blank string) is discarded
|
||||
and not shown.
|
||||
|
||||
File size is formatted using first letter of IEC 80000-13:2025 prefixes
|
||||
for binary multiples (i.e. 1024 bytes is 1.0K).
|
||||
|
||||
tabstop (int) (default 8)
|
||||
|
||||
Number of space characters to show for horizontal tabulation (U+0009)
|
||||
|
||||
Reference in new issue
Block a user