Skip to content

Commit

Permalink
Add ^_ mapping to undo in viins mode (sorin-ionescu#1860)
Browse files Browse the repository at this point in the history
This allows to cancel a tab completion, as ^_ in emacs mode.
  • Loading branch information
Matthieu PETIOT authored and Erik Johansen committed Feb 1, 2021
1 parent 2cd65c8 commit 5b59267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/prompt/external/pure
Submodule pure updated 11 files
+4 −1 .editorconfig
+1 −1 .gitattributes
+0 −1 .github/funding.yml
+0 −1 .npmrc
+0 −1 async
+4 −31 async.zsh
+16 −4 license
+43 −40 package.json
+0 −1 prompt_pure_setup
+89 −216 pure.zsh
+32 −73 readme.md

0 comments on commit 5b59267

Please sign in to comment.