feat: add new fields for the ruler file (#2329)

This commit is contained in:
SPFab authored and GitHub committed 2026-01-11 18:58:37 +01:00
1 parent dd4be21e23
commit 190f5369a2
6 files changed
+34 -7

No files matched your search

+5
View File
@@ -1028,13 +1028,18 @@ func (ui *ui) drawRulerFile(nav *nav) {
stat = &statData{
Path: curr.path,
Name: curr.Name(),
Extension: curr.ext,
Size: uint64(curr.Size()),
Permissions: permString(curr.Mode()),
ModTime: curr.ModTime().Format(gOpts.timefmt),
AccessTime: curr.accessTime.Format(gOpts.timefmt),
BirthTime: curr.birthTime.Format(gOpts.timefmt),
ChangeTime: curr.changeTime.Format(gOpts.timefmt),
LinkCount: linkCount(curr),
User: userName(curr),
Group: groupName(curr),
Target: curr.linkTarget,
CustomInfo: curr.customInfo,
}
} else {
ui.echoerrf("stat: %s", curr.err)