Display statfmt file size with fixed width (#1405)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-09-02 11:55:30 +10:00
1 parent 6aa3d2aa18
commit 990cea7e04
5 files changed
+15 -13

No files matched your search

+1
View File
@@ -743,6 +743,7 @@ func (ui *ui) loadFileInfo(nav *nav) {
replace("%u", userName(curr))
replace("%g", groupName(curr))
replace("%s", humanize(curr.Size()))
replace("%S", fmt.Sprintf("%4s", humanize(curr.Size())))
replace("%t", curr.ModTime().Format(gOpts.timefmt))
replace("%l", curr.linkTarget)