summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index c328f6f0..90454c1c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -253,10 +253,10 @@ fn main() -> error::Result<()> {
match event.code {
KeyCode::Char('c') => break,
KeyCode::Char('f') => app.enable_searching(),
- KeyCode::Left | KeyCode::Char('h') => app.move_left(),
- KeyCode::Right | KeyCode::Char('l') => app.move_right(),
- KeyCode::Up | KeyCode::Char('k') => app.move_up(),
- KeyCode::Down | KeyCode::Char('j') => app.move_down(),
+ KeyCode::Left => app.move_left(),
+ KeyCode::Right => app.move_right(),
+ KeyCode::Up => app.move_up(),
+ KeyCode::Down => app.move_down(),
KeyCode::Char('p') => app.search_with_pid(),
KeyCode::Char('n') => app.search_with_name(),
KeyCode::Char('r') => {
@@ -264,11 +264,18 @@ fn main() -> error::Result<()> {
app.reset();
}
}
- // TODO: [SEARCH] Rename "simple" search to just... search without cases...
KeyCode::Char('a') => app.skip_cursor_beginning(),
KeyCode::Char('e') => app.skip_cursor_end(),
_ => {}
}
+ } else if let KeyModifiers::SHIFT = event.modifiers {
+ match event.code {
+ KeyCode::Left => app.move_left(),
+ KeyCode::Right => app.move_right(),
+ KeyCode::Up => app.move_up(),
+ KeyCode::Down => app.move_down(),
+ _ => {}
+ }
}
}