Skip to content

Commit

Permalink
Add vim bindings for scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ztroop committed Mar 21, 2024
1 parent 86ca845 commit b6e127a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub async fn viewer<B: Backend>(
}
}
}
KeyCode::Down => {
KeyCode::Down | KeyCode::Char('j') => {
if inspect_view {
inspect_overlay_scroll += 1;
} else {
Expand All @@ -149,7 +149,7 @@ pub async fn viewer<B: Backend>(
table_state.select(Some(next));
}
}
KeyCode::Up => {
KeyCode::Up | KeyCode::Char('k') => {
if inspect_view {
inspect_overlay_scroll = inspect_overlay_scroll.saturating_sub(1);
} else {
Expand Down

0 comments on commit b6e127a

Please sign in to comment.