Change file size units to IEC 80000-13:2025 (binary multiples) (#2062)

* Change file size units from SI to IEC 80000-13:2025

Increase left-padded (%S) file size string length to 5 characters

Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>

* Add note about used IEC units for file size in docs

---------

Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
This commit is contained in:
Andrew VoynovandJoe Lim authored and GitHub committed 2025-07-26 19:03:13 +10:00
1 parent d60acef469
commit 23b30ae1ee
10 files changed
+90 -56

No files matched your search

+7 -2
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2025\-07\-19" "" "DOCUMENTATION"
.TH "LF" "1" "2025\-07\-24" "" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -966,14 +966,19 @@ Format string of the file info shown in the bottom left corner.
Special expansions are provided, \f[CR]%p\f[R] as the file permissions,
\f[CR]%c\f[R] as the link count, \f[CR]%u\f[R] as the user,
\f[CR]%g\f[R] as the group, \f[CR]%s\f[R] as the file size,
\f[CR]%S\f[R] as the file size but with a fixed width of four characters
\f[CR]%S\f[R] as the file size but with a fixed width of five characters
(left\-padded with spaces), \f[CR]%t\f[R] as the last modified time,
\f[CR]%l\f[R] as the link target, \f[CR]%m\f[R] as the current mode and
\f[CR]%M\f[R] as the current mode but also shown in Normal mode
(displaying \f[CR]NORMAL\f[R] instead of a blank string).
.PP
The \f[CR]|\f[R] character splits the format string into sections.
Any section containing a failed expansion (result is a blank string) is
discarded and not shown.
.PP
File size is formatted using first letter of IEC 80000\-13:2025 prefixes
for binary multiples (i.e.
1024 bytes is \f[CR]1.0K\f[R]).
.SS tabstop (int) (default 8)
Number of space characters to show for horizontal tabulation (U+0009)
character.