From 5b59267aa90857a8d890b6ccc5599f85ea388dcf Mon Sep 17 00:00:00 2001 From: Matthieu PETIOT Date: Thu, 30 Jul 2020 22:29:59 +0200 Subject: [PATCH] Add ^_ mapping to undo in viins mode (#1860) This allows to cancel a tab completion, as ^_ in emacs mode. --- modules/completion/external | 2 +- modules/editor/init.zsh | 1 + modules/prompt/external/pure | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/external b/modules/completion/external index ed4ff5384b0..cf565254e26 160000 --- a/modules/completion/external +++ b/modules/completion/external @@ -1 +1 @@ -Subproject commit ed4ff5384b03aa775a57d4c9588c88850026b0b3 +Subproject commit cf565254e26bb7ce03f51889e9a29953b955b1fb diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 28a2fb24a04..5b411f58a95 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -318,6 +318,7 @@ bindkey -M vicmd "$key_info[Control]X$key_info[Control]E" edit-command-line # Undo/Redo bindkey -M vicmd "u" undo +bindkey -M viins "$key_info[Control]_" undo bindkey -M vicmd "$key_info[Control]R" redo if (( $+widgets[history-incremental-pattern-search-backward] )); then diff --git a/modules/prompt/external/pure b/modules/prompt/external/pure index 2e354b80dea..9325fe60f88 160000 --- a/modules/prompt/external/pure +++ b/modules/prompt/external/pure @@ -1 +1 @@ -Subproject commit 2e354b80deae105ea246699c49e65dcd4fe8b759 +Subproject commit 9325fe60f8857ae089146176c2fa73384507dfc3