feat: the status pane counts repos with secret files next to the accounts (#27)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #27.
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-12 00:07:00 +02:00
1 parent ea85c4c8a3
commit a6293178b6
2 files changed
+17 -1

No files matched your search

+5 -1
View File
@@ -38,9 +38,10 @@ func (m Model) statusLine() string {
case m.newer != nil:
parts = append(parts, m.st.Notice.Render("↑ "+m.newer.Tag+withKey(m.keys.Update, " %s")))
}
accounts, failing := 0, 0
accounts, failing, repos := 0, 0, 0
for _, p := range m.providers {
if p.Kind() == provider.KindRepo {
repos += len(m.sourceResults[p.ID()].sources) // those with secret files
continue
}
accounts++
@@ -58,6 +59,9 @@ func (m Model) statusLine() string {
}
parts = append(parts, s)
}
if repos > 0 {
parts = append(parts, plural(repos, "repo"))
}
return " " + strings.Join(parts, m.st.Muted.Render(" · "))
}