-
-
Save binc4t/c698b1a6933071e9c07f7fecad12e573 to your computer and use it in GitHub Desktop.
在按下ESC时,ESC生效的同时将输入法切换为英文,可以应用在vim退出编辑模式时
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "ESC: ESC and language to en", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "input_source_unless", | |
"input_sources": [ | |
{ | |
"input_source_id": "^com\\.apple\\.keylayout\\.ABC$", | |
"language": "^en$" | |
} | |
] | |
} | |
], | |
"from": { | |
"key_code": "escape" | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"select_input_source": { | |
"input_source_id": "^com\\.apple\\.keylayout\\.ABC$", | |
"language": "^en$" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment