diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/app.rs | 1 | ||||
-rw-r--r-- | src/canvas.rs | 2 | ||||
-rw-r--r-- | src/main.rs | 1 |
4 files changed, 3 insertions, 3 deletions
@@ -128,7 +128,7 @@ when searching processes. - `Ctrl-p` or `Ctrl-n` to switch between searching for PID and name respectively. -- `Ctrl-s` to toggle between a simple search and a regex search. +- `Tab` to toggle whether to ignore case. - `Ctrl-a` and `Ctrl-e` to jump to the start and end of the search bar respectively. @@ -189,6 +189,7 @@ impl App { match self.current_widget_selected { WidgetPosition::Process => self.toggle_grouping(), WidgetPosition::Disk => {} + WidgetPosition::ProcessSearch => self.toggle_ignore_case(), _ => {} } } diff --git a/src/canvas.rs b/src/canvas.rs index 0cc5904e..4768426f 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -53,7 +53,7 @@ lazy_static! { Text::raw("Ctrl-f to toggle searching for a process. / to just open it.\n"), Text::raw("Use Ctrl-p and Ctrl-n to toggle between searching for PID and name.\n"), Text::raw("Use Ctrl-a and Ctrl-e to set the cursor to the start and end of the bar respectively.\n"), - Text::raw("Use Ctrl-s to toggle between simple and regex search.\n"), + Text::raw("Use Tab to toggle whether to ignore case.\n"), Text::raw("\nFor startup flags, type in \"btm -h\".") ]; static ref COLOUR_LIST: Vec<Color> = gen_n_colours(constants::NUM_COLOURS); diff --git a/src/main.rs b/src/main.rs index ae3df136..f2ed4d42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -256,7 +256,6 @@ fn main() -> error::Result<()> { } } // TODO: [SEARCH] Rename "simple" search to just... search without cases... - KeyCode::Char('s') => app.toggle_ignore_case(), KeyCode::Char('a') => app.skip_cursor_beginning(), KeyCode::Char('e') => app.skip_cursor_end(), _ => {} |