Show directory size in ruler (#2343)

* Added dirSize to Size field and changed humanize function accordingly

* Seperated size into own fields and changed type to use pointers

* Added Documentation and Changelog
This commit is contained in:
SPFab authored and GitHub committed 2026-01-20 13:01:23 +11:00
1 parent b5d981ad4a
commit fa8e3788de
6 files changed
+22 -2

No files matched your search

+3 -1
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2026\-01\-12" "r41" "DOCUMENTATION"
.TH "LF" "1" "2026\-01\-16" "r41" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -2548,6 +2548,8 @@ The following data fields are exported:
\&.Stat.Name string Name of the current file
\&.Stat.Extension string Extension of the current file
\&.Stat.Size uint64 Size of the current file
\&.Stat.DirSize *uint64 Total Size of the current directory if calculated via \(gacalcdirsize\(ga
\&.Stat.DirCount *uint64 Number of items in the current directory if \(gadircounts\(ga option is enabled
\&.Stat.Permissions string Permissions of the current file
\&.Stat.ModTime string Last modified time of the current file (formatted based on the \(gatimefmt\(ga option)
\&.Stat.AccessTime string Last access time of the current file (formatted based on the \(gatimefmt\(ga option)