feat(tui): show the clear-all key in the searches pane's shortcuts

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.
This commit is contained in:
Michel de Graaf
2026-09-08 11:11:45 +02:00
parent 320d0a81a6
commit 995fe98c01
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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();
+1
View File
@@ -594,6 +594,7 @@ impl MainTui {
("s", "search"),
("Enter", "results"),
("d", "remove"),
("C", "clear all"),
("m", "message"),
("i", "inbox"),
("c", "chat"),