Skip to content

Instantly share code, notes, and snippets.

@skoji
Created November 20, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skoji/ae99579253ba0ce6ec8e62b6205279cf to your computer and use it in GitHub Desktop.
Save skoji/ae99579253ba0ce6ec8e62b6205279cf to your computer and use it in GitHub Desktop.
karabinier : ~/.config/karabiner/assets/complex_modifications/FromEscapeToJapanese_eisuu.json
{
"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