Skip to content

Commit

Permalink
feat(oma-console): add <space> f/b to PgDn/PgUp
Browse files Browse the repository at this point in the history
  • Loading branch information
eatradish committed Feb 25, 2025
1 parent abe46a8 commit 16e6ae4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oma-console/src/pager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,15 +423,17 @@ impl<'a> OmaPager<'a> {
}
TuiMode::Noemal => continue,
},
KeyCode::Char(c) if c == 'u' || c == 'U' => {
KeyCode::Char(c) if c == 'u' || c == 'U' || c == 'b' || c == 'B' => {
if self.mode == TuiMode::SearchInputText {
query.push(c);
self.tips = self.ui_text.searct_tips_with_query(&query);
continue;
}
self.page_up();
}
KeyCode::Char(c) if c == 'd' || c == 'D' => {
KeyCode::Char(c)
if c == 'd' || c == 'D' || c == ' ' || c == 'F' || c == 'f' =>
{
if self.mode == TuiMode::SearchInputText {
query.push(c);
self.tips = self.ui_text.searct_tips_with_query(&query);
Expand Down

0 comments on commit 16e6ae4

Please sign in to comment.