Skip to content

Commit

Permalink
Merge pull request #98494 from connorskees/issue-98404
Browse files Browse the repository at this point in the history
use ^H to delete word left in cmd.exe
  • Loading branch information
Tyriar committed Jul 13, 2020
2 parents b8b7e72 + a7cfc3f commit 909356f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ registerSendSequenceKeybinding(String.fromCharCode('W'.charCodeAt(0) - 64), {
primary: KeyMod.CtrlCmd | KeyCode.Backspace,
mac: { primary: KeyMod.Alt | KeyCode.Backspace }
});
if (platform.isWindows) {
// Delete word left: ctrl+h
// Windows cmd.exe requires ^H to delete full word left
registerSendSequenceKeybinding(String.fromCharCode('H'.charCodeAt(0) - 64), {
when: ContextKeyExpr.equals(KEYBINDING_CONTEXT_TERMINAL_SHELL_TYPE_KEY, WindowsShellType.CommandPrompt),
primary: KeyMod.CtrlCmd | KeyCode.Backspace,
});
}
// Delete word right: alt+d
registerSendSequenceKeybinding('\x1bd', {
primary: KeyMod.CtrlCmd | KeyCode.Delete,
Expand Down

0 comments on commit 909356f

Please sign in to comment.