aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNelyah <Nelyah@users.noreply.github.com>2025-03-13 23:11:31 +0100
committerGitHub <noreply@github.com>2025-03-13 22:11:31 +0000
commit28d5ff83c22c8737388c20f2e683be5712e915e4 (patch)
tree19d4e774ef4a8bf24418b463bf08d5966d5b3f6a
parentchore: align daemon and client sync freq (#2628) (diff)
downloadatuin-28d5ff83c22c8737388c20f2e683be5712e915e4.zip
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).
-rw-r--r--crates/atuin/src/command/client/search/interactive.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/atuin/src/command/client/search/interactive.rs b/crates/atuin/src/command/client/search/interactive.rs
index 3c63dc70..ceb781ba 100644
--- a/crates/atuin/src/command/client/search/interactive.rs
+++ b/crates/atuin/src/command/client/search/interactive.rs
@@ -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