From 85d7d944b42b191c89356bb779ac4f1f456bea6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 19 Jun 2024 20:23:23 -0700 Subject: [PATCH] add total files to table header --- internal/tables/tables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tables/tables.go b/internal/tables/tables.go index 65c6348..e7349d9 100644 --- a/internal/tables/tables.go +++ b/internal/tables/tables.go @@ -328,7 +328,7 @@ func (m model) header() 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 {