Last active
April 29, 2021 14:29
-
-
Save doortts/3eb501469a9308ed8500f699b5aaed22 to your computer and use it in GitHub Desktop.
vim 이나 IdeaVim 에서 esc 누를 때 영문으로 IME 변경하는 Rule (Mac + Karabiner)
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
// ~/.config/karabiner/assets/complex_modifications/escape_to_en.json 에 파일 위치시킴 | |
// Complex modifications 에서 위 규칙 추가 | |
// bundle_identifiers 는 Karabiner-EventViewer 를 이용해서 찾는다 | |
// | |
// See: https://github.com/johngrib/simple_vim_guide/blob/master/md/with_korean.md | |
{ | |
"title": "Convert to en when ESC", | |
"rules": [ | |
{ | |
"description":"Convert to en when ESC", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
} | |
], | |
"to_after_key_up": [ | |
{ | |
"select_input_source": { | |
"language": "en" | |
} | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"^com\\.apple\\.Terminal$", | |
"^com\\.googlecode\\.iterm2$", | |
"^co\\.zeit\\.hyperterm$", | |
"^co\\.zeit\\.hyper$", | |
"^io\\.alacritty$", | |
"^com\\.jetbrains\\.goland$", | |
"^com\\.jetbrains\\.intellij$", | |
"^com\\.jetbrains\\.webstorm$" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment