Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions pkg/tui/dialog/session_browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dialog
import (
"fmt"
"slices"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -314,13 +315,20 @@ func (d *sessionBrowserDialog) View() string {
scrollableContent = d.scrollview.View()
}

// Build title with filter indicator
title := "Sessions"
// Build title with session count and optional star-filter indicator.
// Show "filtered/total" when a search or star filter reduces the list.
var countLabel string
if len(d.filtered) == len(d.sessions) {
countLabel = strconv.Itoa(len(d.sessions))
} else {
countLabel = fmt.Sprintf("%d/%d", len(d.filtered), len(d.sessions))
}
title := fmt.Sprintf("Sessions (%s)", countLabel)
switch d.starFilter {
case 1:
title = "Sessions " + styles.StarredStyle.Render("★")
title += " " + styles.StarredStyle.Render("★")
case 2:
title = "Sessions " + styles.UnstarredStyle.Render("☆")
title += " " + styles.UnstarredStyle.Render("☆")
}

var filterDesc string
Expand Down
Loading