diff --git a/src/main.rs b/src/main.rs index 4bc9dae..ba79209 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,8 +46,8 @@ //! Esc returns to NORMAL without clearing the filter; another Esc closes. Search input editing shortcuts apply. //! Matching selections survive filter edits; no matches leaves Enter/p without an action. //! Pinned categories stay visible; browsing another category replaces the single temporary tab. -//! Pinned category tab titles use `[p]`, matching the selector; Search, Feed, and temporary tabs do not. -//! The marker shares selection styling and counts toward whole-label wrapping without changing category names. +//! Pinned category tab titles use a dimmed `· p` suffix; Search, Feed, and temporary tabs do not. +//! The suffix stays dimmed when selected and counts toward whole-label wrapping without changing category names. //! Browsing a pinned category focuses its existing tab and removes the temporary tab. //! Top-level `pinned_categories = ["Favorites"]` persists pins; missing category names are ignored. //! Tab/Shift-Tab cycle only visible tabs; hidden views retain cached rows and selection. @@ -1229,11 +1229,11 @@ impl App { if row_width != 0 { row.spans.push("│".into()); } - row.spans.push(" ".into()); + row.spans.extend([" ".into(), title]); if pinned { - row.spans.push(Span::styled("[p] ", title.style)); + row.spans.push(Span::styled(" · p", Style::new().dim())); } - row.spans.extend([title, " ".into()]); + row.spans.push(" ".into()); row_width += usize::from(row_width != 0) + title_width; } // Leave space for search, a usable results pane, status, and help.