mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-17 10:31:42 +02:00
feat: Use readline binding for ctrl-a when it is not the prefix (#2626)
Previously, if the binding was being changed to something else than 'a', we would not apply the readline shortcut (go to beginning of line).
This commit is contained in:
@ -417,6 +417,7 @@ impl State {
|
||||
KeyCode::Right => self.search.input.right(),
|
||||
KeyCode::Char('f') if ctrl => self.search.input.right(),
|
||||
KeyCode::Home => self.search.input.start(),
|
||||
KeyCode::Char('a') if ctrl => self.search.input.start(),
|
||||
KeyCode::Char('e') if ctrl => self.search.input.end(),
|
||||
KeyCode::End => self.search.input.end(),
|
||||
KeyCode::Backspace if ctrl => self
|
||||
|
Reference in New Issue
Block a user