Created
November 20, 2018 12:43
-
-
Save skoji/ae99579253ba0ce6ec8e62b6205279cf to your computer and use it in GitHub Desktop.
karabinier : ~/.config/karabiner/assets/complex_modifications/FromEscapeToJapanese_eisuu.json
This file contains hidden or 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
{ | |
"title": "Terminal等でESCあるいは^[で日本語入力を英数に", | |
"rules": [ | |
{ | |
"description": "Terminal, iTerm2またはMacVimでESCあるいは^[を押したときに日本語入力を英数に切り替える。", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "escape", "modifiers": { "optional": [ "any" ] } }, | |
"to": [ { "key_code": "japanese_eisuu" }, { "key_code": "escape" } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.googlecode\\.iterm2", "^com\\.apple\\.Terminal$", "^org\\.vim\\." ] } ] | |
}, | |
{ | |
"type": "basic", | |
"from": { "key_code": "open_bracket", "modifiers": { "mandatory": ["left_control"] } }, | |
"to": [ { "key_code": "japanese_eisuu" }, { "key_code": "escape" } ], | |
"conditions": [ { "type": "frontmost_application_if", "bundle_identifiers": [ "^com\\.googlecode\\.iterm2", "^com\\.apple\\.Terminal$", "^org\\.vim\\." ] } ] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment