diff options
| author | Aditya Bhargava <rightaditya@users.noreply.github.com> | 2026-04-23 14:10:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 11:10:50 -0700 |
| commit | 1b6f9d10220178f8f69986d57d9441d9f669f7df (patch) | |
| tree | e727ca7810820e2deb58a0301b7ec9203934f41f /crates/atuin-ai/src/commands/init.rs | |
| parent | fix: require all subcommands covered for shell allow rules (#3440) (diff) | |
| download | atuin-1b6f9d10220178f8f69986d57d9441d9f669f7df.zip | |
fix: minor issues with fish's vim mode(s) (#3362)
This PR fixes two minor issues when using Atuin with fish's vim mode(s):
1. Add support for `fish_hybrid_key_bindings`: in addition to
`fish_vi_key_bindings`, fish also provides `fish_hybrid_key_bindings`,
which is a vi-based mode with some extra keybinds; but the key bind
check for `atuin search` only checks for the former.
2. The AI keybind inserts a `?` on the command line in vim mode even
though it can only be called from normal mode, when pressing `?`
normally does nothing.
Diffstat (limited to 'crates/atuin-ai/src/commands/init.rs')
| -rw-r--r-- | crates/atuin-ai/src/commands/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-ai/src/commands/init.rs b/crates/atuin-ai/src/commands/init.rs index f693d892..1f03f5b1 100644 --- a/crates/atuin-ai/src/commands/init.rs +++ b/crates/atuin-ai/src/commands/init.rs @@ -176,7 +176,7 @@ function _atuin_ai_question_mark else commandline -f repaint end - else + else if not contains -- "$fish_key_bindings" fish_vi_key_bindings fish_hybrid_key_bindings # Not at empty prompt, just insert the question mark commandline -i "?" end |
