Skip to content

Commit

Permalink
feat: update inspector key binding for "clear filter" (#307)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DavePearce authored Dec 11, 2024
1 parent bb8b094 commit 3fb33e7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/inspect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3fb33e7

Please sign in to comment.