Created
November 13, 2017 22:42
-
-
Save calvinbui/6c74bb48281f1f311b2fffd74c22835e to your computer and use it in GitHub Desktop.
Karabiner Elements Home and End Key except for iTerm2, VIM and Microsoft
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
{ | |
"title": "Windows keys", | |
"rules": [{ | |
"description": "home/end except for iterm2/vim/outlook", | |
"manipulators": [{ | |
"type": "basic", | |
"from": { | |
"key_code": "end" | |
}, | |
"to": [{ | |
"key_code": "e", | |
"modifiers": [ | |
"control" | |
] | |
}], | |
"conditions": [{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^org\\.vim\\.", | |
"^com.googlecode.iterm2", | |
"^com.microsoft.*" | |
] | |
}] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "home" | |
}, | |
"to": [{ | |
"key_code": "a", | |
"modifiers": [ | |
"control" | |
] | |
}], | |
"conditions": [{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^org\\.vim\\.", | |
"^com.googlecode.iterm2", | |
"^com.microsoft.*" | |
] | |
}] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "end", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
}], | |
"conditions": [{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^org\\.vim\\.", | |
"^com.googlecode.iterm2", | |
"^com.microsoft.*" | |
] | |
}] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "home", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
] | |
} | |
}, | |
"to": [{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"command", | |
"shift" | |
] | |
}], | |
"conditions": [{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": [ | |
"^org\\.vim\\.", | |
"^com.googlecode.iterm2", | |
"^com.microsoft.*" | |
] | |
}] | |
} | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment