From 995fe98c01d8f7025b99e98b915454ee16393387 Mon Sep 17 00:00:00 2001 From: Michel de Graaf Date: Tue, 8 Sep 2026 10:27:26 +0200 Subject: [PATCH] feat(tui): show the clear-all key in the searches pane's shortcuts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C has cleared every search for a while, and the keys popup says so, but the pane's own shortcut bar never mentioned it, so it read as if d on each search were the only way. The bar now lists it next to d → remove. --- soulseek-rs/src/ui/main_tui/mod.rs | 8 ++++++++ soulseek-rs/src/ui/main_tui/render.rs | 1 + 2 files changed, 9 insertions(+) diff --git a/soulseek-rs/src/ui/main_tui/mod.rs b/soulseek-rs/src/ui/main_tui/mod.rs index 2e58c53..49eba3a 100644 --- a/soulseek-rs/src/ui/main_tui/mod.rs +++ b/soulseek-rs/src/ui/main_tui/mod.rs @@ -1810,6 +1810,14 @@ mod tests { assert_eq!(bar_rows, 1, "{wide}"); } + #[test] + fn the_searches_pane_lists_its_clear_all_key() { + let mut tui = furnished_tui(); + tui.state.focused_pane = FocusedPane::Searches; + let screen = screen_sized(&mut tui, 300, 40); + assert!(screen.contains("[C → clear all]"), "{screen}"); + } + #[test] fn page_keys_work_in_the_transfers_and_searches_lists_too() { let mut tui = furnished_tui(); diff --git a/soulseek-rs/src/ui/main_tui/render.rs b/soulseek-rs/src/ui/main_tui/render.rs index 166283c..3f8bf96 100644 --- a/soulseek-rs/src/ui/main_tui/render.rs +++ b/soulseek-rs/src/ui/main_tui/render.rs @@ -594,6 +594,7 @@ impl MainTui { ("s", "search"), ("Enter", "results"), ("d", "remove"), + ("C", "clear all"), ("m", "message"), ("i", "inbox"), ("c", "chat"),