Move ignore case to tab
This commit is contained in:
parent
3327087443
commit
853ce3c736
|
@ -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(),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(),
|
||||
_ => {}
|
||||
|
|
Loading…
Reference in New Issue