From 6bf0d3fb1241d48148c5327be59edf44b2a2d59f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 23 Oct 2024 13:30:57 +0200 Subject: fix(modules/zsh): Support completion again These mappings were missed in the `zsh` rework, and are apparently needed for completion to work. --- modules/by-name/zs/zsh/config/keymaps/viins.zsh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'modules/by-name/zs/zsh/config/keymaps') diff --git a/modules/by-name/zs/zsh/config/keymaps/viins.zsh b/modules/by-name/zs/zsh/config/keymaps/viins.zsh index 4e76cdec..d215d190 100644 --- a/modules/by-name/zs/zsh/config/keymaps/viins.zsh +++ b/modules/by-name/zs/zsh/config/keymaps/viins.zsh @@ -17,10 +17,6 @@ bindkey -M viins "^X^R" _read_comp bindkey -M viins "^[," _history-complete-newer bindkey -M viins "^[/" _history-complete-older -bindkey -M viins "^J" accept-line -bindkey -M viins "^M" accept-line -bindkey -M viins "^L" clear-screen - bindkey -M viins "^R" atuin-search-viins bindkey -M viins "^V" edit-command-line @@ -51,5 +47,14 @@ bindkey -M viins "^[[200~" bracketed-paste bindkey -M viins "^[[2~" overwrite-mode bindkey -M viins "^[[3~" delete-char bindkey -M viins "^?" vi-backward-delete-char +bindkey -M viins "^H" vi-backward-delete-char bindkey -M viins "^[[5~" beginning-of-buffer-or-history bindkey -M viins "^[[6~" end-of-buffer-or-history + +bindkey -M viins "^J" accept-line +bindkey -M viins "^M" accept-line +bindkey -M viins "^L" clear-screen + +bindkey -M viins "^D" list-choices +bindkey -M viins "^G" list-expand +bindkey -M viins "^I" expand-or-complete -- cgit 1.4.1