From cbed6fc429416c25055155f96db9412a66810651 Mon Sep 17 00:00:00 2001 From: isabel Date: Fri, 31 May 2024 17:11:44 +0100 Subject: [PATCH] feat: total unread --- cmd/load.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/load.go b/cmd/load.go index 1bd3890..0d56b90 100644 --- a/cmd/load.go +++ b/cmd/load.go @@ -1,6 +1,7 @@ package cmd import ( + "fmt" "strconv" "strings" @@ -19,7 +20,8 @@ func (m Model) loadHome() Model { rows := []table.Row{} for _, Feed := range m.feeds { totalUnread := strconv.Itoa(Feed.GetTotalUnreads()) - rows = append(rows, table.Row{totalUnread, Feed.Title}) + fraction := fmt.Sprintf("%s/%d", totalUnread, len(Feed.Posts)) + rows = append(rows, table.Row{fraction, Feed.Title}) } m.context = "home"