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
@@ -198,6 +198,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')
|
||||
@@ -981,6 +982,10 @@ List of shell options to pass to the shell executable.
|
||||
|
||||
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 character.
|
||||
@@ -1015,8 +1020,6 @@ Special expansions are provided, `%p` as the file permissions, `%c` as the link
|
||||
|
||||
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) character.
|
||||
|
||||
Reference in new issue
Block a user