summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-02-02 00:54:40 -0500
committerClementTsang <cjhtsang@uwaterloo.ca>2020-02-02 00:55:57 -0500
commit853ce3c736e94b12b98ffa867fd0d042add8bd7c (patch)
treeebdf9a5bd429976df9db25dd50848ed8036629fb /src
parent332708744387d7658f3a22802f4aafde4d87f9f8 (diff)
Move ignore case to tab
Diffstat (limited to 'src')
-rw-r--r--src/app.rs1
-rw-r--r--src/canvas.rs2
-rw-r--r--src/main.rs1
3 files changed, 2 insertions, 2 deletions
diff --git a/src/app.rs b/src/app.rs
index fd5a8934..ea140981 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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(),
_ => {}