From e9d2ec4bf7cd914dfe889f663956ce00f1ded8db Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Sun, 8 May 2022 04:03:00 -0400 Subject: [PATCH] Add ctrl-k and ctrl-j for up and down (#394) --- src/command/client/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/client/search.rs b/src/command/client/search.rs index bc778f0..8c60bd3 100644 --- a/src/command/client/search.rs +++ b/src/command/client/search.rs @@ -343,7 +343,7 @@ async fn key_handler( query_results(app, search_mode, db).await.unwrap(); } - Key::Down | Key::Ctrl('n') => { + Key::Down | Key::Ctrl('n' | 'j') => { let i = match app.results_state.selected() { Some(i) => { if i == 0 { @@ -356,7 +356,7 @@ async fn key_handler( }; app.results_state.select(Some(i)); } - Key::Up | Key::Ctrl('p') => { + Key::Up | Key::Ctrl('p' | 'k') => { let i = match app.results_state.selected() { Some(i) => { if i >= app.results.len() - 1 {