mirror of
https://github.com/atuinsh/atuin.git
synced 2025-02-16 10:30:44 +01:00
shift tab
This commit is contained in:
parent
e75f47a07b
commit
ba0665b24b
@ -381,6 +381,15 @@ fn key_handler(input: &TermEvent, app: &mut State) -> Option<String> {
|
||||
FilterMode::Directory => FilterMode::Global,
|
||||
};
|
||||
}
|
||||
// shift-tab
|
||||
TermEvent::Key(Key::BackTab) => {
|
||||
app.filter_mode = match app.filter_mode {
|
||||
FilterMode::Host => FilterMode::Global,
|
||||
FilterMode::Session => FilterMode::Host,
|
||||
FilterMode::Directory => FilterMode::Session,
|
||||
FilterMode::Global => FilterMode::Directory,
|
||||
};
|
||||
}
|
||||
TermEvent::Key(Key::Down | Key::Ctrl('n' | 'j'))
|
||||
| TermEvent::Mouse(MouseEvent::Press(MouseButton::WheelDown, _, _)) => {
|
||||
let i = match app.results_state.selected() {
|
||||
|
Loading…
Reference in New Issue
Block a user