From d9165efec919b5f8a33daab2121b9b588a84041f Mon Sep 17 00:00:00 2001 From: vasilito Date: Mon, 6 Jul 2026 23:34:32 +0300 Subject: [PATCH] W38: Selected file count badge in border title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Append a '● N marked' badge to the active panel's border title when files are selected, using the accent colour for visibility. Makes the selection count visible even when the footer row is hidden (e.g. on very short panels). Tests: 1400 pass, zero warnings. --- .../recipes/tui/tlc/source/src/filemanager/render.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/local/recipes/tui/tlc/source/src/filemanager/render.rs b/local/recipes/tui/tlc/source/src/filemanager/render.rs index 9fa16814c6..f2fbc6990a 100644 --- a/local/recipes/tui/tlc/source/src/filemanager/render.rs +++ b/local/recipes/tui/tlc/source/src/filemanager/render.rs @@ -306,7 +306,16 @@ impl FileManager { format!(" {}% free", pct) }, ); - format!(" {} {space} ", format_utils::path_short(panel.path())) + // Append a "N marked" badge if files are selected. + let marked = if panel.marked_count() > 0 { + format!(" ● {} marked", panel.marked_count()) + } else { + String::new() + }; + format!( + " {} {space} {marked} ", + format_utils::path_short(panel.path()) + ) } else { format!(" {} ", format_utils::path_short(panel.path())) };