From 3fb33e72563d482a8dee6fecc370012a2351607d Mon Sep 17 00:00:00 2001 From: David Pearce Date: Thu, 12 Dec 2024 12:28:02 +1300 Subject: [PATCH] feat: update inspector key binding for "clear filter" (#307) This updates the key binding for clearing the filter in the inspector from "F" to "#". This just prevents accidentally clearing the filter when doing something else. --- src/inspect/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/inspect/mod.rs b/src/inspect/mod.rs index 6302e1b..ce106c9 100644 --- a/src/inspect/mod.rs +++ b/src/inspect/mod.rs @@ -393,9 +393,8 @@ impl<'a> Inspector<'a> { "[f]".yellow().bold(), "ilter".into(), " :: ".dark_gray(), - "clear ".into(), - "[F]".yellow().bold(), - "ilter".into(), + "[#]".yellow().bold(), + "clear filter".into(), " :: ".dark_gray(), "[s]".yellow().bold(), "can".into(), @@ -535,7 +534,7 @@ impl<'a> Inspector<'a> { } let _ = terminal.clear(); } - KeyCode::Char('F') => self.current_module_mut().clear_filter(), + KeyCode::Char('#') => self.current_module_mut().clear_filter(), KeyCode::Char('p') => { let flag = self.current_module().blank_perspectives; self.current_module_mut().blank_perspectives = !flag;