Skip to content

Commit

Permalink
use or within match
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Nov 19, 2024
1 parent 574907a commit fbb1a5f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,11 @@ impl State {
KeyCode::Char('c' | 'g') if ctrl => Some(InputAction::ReturnOriginal),
KeyCode::Esc if esc_allow_exit => Some(Self::handle_key_exit(settings)),
KeyCode::Char('[') if ctrl && esc_allow_exit => Some(Self::handle_key_exit(settings)),
KeyCode::Tab => Some(InputAction::Accept(self.results_state.selected())),
KeyCode::Right => Some(InputAction::Accept(self.results_state.selected())),
KeyCode::Char('o') if ctrl => {
self.tab_index = (self.tab_index + 1) % TAB_TITLES.len();

Some(InputAction::Continue)
}

},
KeyCode::Tab | KeyCode::Right => Some(InputAction::Accept(self.results_state.selected())),
_ => None,
};

Expand Down

0 comments on commit fbb1a5f

Please sign in to comment.