Skip to content

Instantly share code, notes, and snippets.

@EgorDuplensky
Last active January 5, 2026 08:32
Show Gist options
  • Select an option

  • Save EgorDuplensky/58d1d9af9b29f98ddf19312f7819c3f1 to your computer and use it in GitHub Desktop.

Select an option

Save EgorDuplensky/58d1d9af9b29f98ddf19312f7819c3f1 to your computer and use it in GitHub Desktop.
Fix emacs Ctrl keys not working in Windows Terminal
{
"actions":
[
{
"command": {
"action": "sendInput",
"input": "\u0018@c;"
},
"keys": "ctrl+;"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c:"
},
"keys": "ctrl+shift+;"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c<"
},
"keys": "ctrl+shift+comma"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c,"
},
"keys": "ctrl+comma"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c>"
},
"keys": "ctrl+shift+period"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c'"
},
"keys": "ctrl+'"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c\""
},
"keys": "ctrl+shift+'"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c-"
},
"keys": "ctrl+minus"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c+"
},
"keys": "ctrl+plus"
},
{
"command": {
"action": "sendInput",
"input": "\u0018@c="
},
"keys": "ctrl+shift+plus"
},
{
"command":
{
"action": "sendInput",
"input": "\u001b[9;5u"
},
"keys": "ctrl+tab"
},
{
"command":
{
"action": "sendInput",
"input": "\u001b[1;6I"
},
"keys": "ctrl+shift+tab"
}
]
}
@EgorDuplensky
Copy link
Author

EgorDuplensky commented Jan 22, 2025

Based on the workaround mentioned in microsoft/terminal#3483
Windows Terminal -> Settings -> Open JSON file
Feel free to mention additional not working keys to complete the list.

@axbycc-mark
Copy link

Thanks so much! How do you figure these out by the way? I'm trying to get "ctrl+tab" to work.

@EgorDuplensky
Copy link
Author

Thanks so much! How do you figure these out by the way? I'm trying to get "ctrl+tab" to work.

Added "ctrl-tab" and "ctrl-shift-tab", thanks for AI :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment