Skip to content

Commit 3094f2c

Browse files
aiguofermarijnh
authored andcommitted
[emacs] Add "redo" keybinding in Emacs keymap
Since "redo" is generally assigned to Ctrl+Y, we lose this binding when using the Emacs keymap. The Emacs default for "redo" is a bit complicated, but since we're using Ctrl-Z for "undo", it makes sense to have Ctrl+Shift-Z for "redo".
1 parent 17f48fb commit 3094f2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

keymap/emacs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369

370370
"Ctrl-/": repeated("undo"), "Shift-Ctrl--": repeated("undo"),
371371
"Ctrl-Z": repeated("undo"), "Cmd-Z": repeated("undo"),
372+
"Shift-Ctrl-Z": "redo",
372373
"Shift-Alt-,": "goDocStart", "Shift-Alt-.": "goDocEnd",
373374
"Ctrl-S": "findPersistentNext", "Ctrl-R": "findPersistentPrev", "Ctrl-G": quit, "Shift-Alt-5": "replace",
374375
"Alt-/": "autocomplete",

0 commit comments

Comments
 (0)