diff --git a/atuin/src/command/init.rs b/atuin/src/command/init.rs index ba501181..2d4b0e51 100644 --- a/atuin/src/command/init.rs +++ b/atuin/src/command/init.rs @@ -33,8 +33,8 @@ impl Cmd { if std::env::var("ATUIN_NOBIND").is_err() { const BIND_CTRL_R: &str = r"bindkey -M emacs '^r' _atuin_search_widget -bindkey -M vicmd '^r' _atuin_search_vicmd_widget -bindkey -M viins '^r' _atuin_search_viins_widget"; +bindkey -M viins '^r' _atuin_search_viins_widget +bindkey -M vicmd '/' _atuin_search_widget"; const BIND_UP_ARROW: &str = r"bindkey -M emacs '^[[A' _atuin_up_search_widget bindkey -M vicmd '^[[A' _atuin_up_search_vicmd_widget diff --git a/atuin/src/shell/atuin.bash b/atuin/src/shell/atuin.bash index bf5f4481..5feb6d12 100644 --- a/atuin/src/shell/atuin.bash +++ b/atuin/src/shell/atuin.bash @@ -244,6 +244,7 @@ if [[ $__atuin_bind_ctrl_r == true ]]; then # the vi_nmap keymap in ble.sh. bind -m emacs -x '"\C-r": __atuin_history --keymap-mode=emacs' bind -m vi-insert -x '"\C-r": __atuin_history --keymap-mode=vim-insert' + bind -m vi-command -x '"/": __atuin_history --keymap-mode=emacs' fi # shellcheck disable=SC2154