1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 05:24:19 +00:00

feat: Separate Home and Library entries in overview, exclude Library from Home's size, and sort overview entries by size.

This commit is contained in:
Tw93
2025-12-22 10:38:38 +08:00
parent f8765ee3d3
commit 58e30fbcaa
5 changed files with 91 additions and 8 deletions

View File

@@ -164,7 +164,9 @@ func (m model) View() string {
}
}
totalSize := m.totalSize
nameWidth := calculateNameWidth(m.width)
// For overview mode, use a fixed small width since path names are short
// (~/Downloads, ~/Library, etc. - max ~15 chars)
nameWidth := 20
for idx, entry := range m.entries {
icon := "📁"
sizeVal := entry.Size