add total files to table header

This commit is contained in:
Lilian Jónsdóttir 2024-06-19 20:23:23 -07:00
parent 7b61227158
commit 85d7d944b4

View file

@ -328,7 +328,7 @@ func (m model) header() string {
mode = m.mode.String() mode = m.mode.String()
} }
return fmt.Sprintf("%s %s %d files selected", mode, darkesttext.Render("•"), len(m.selected)) return fmt.Sprintf("%s %s %d/%d files selected", mode, darkesttext.Render("•"), len(m.selected), len(m.table.Rows()))
} }
func (m model) footer() string { func (m model) footer() string {