Skip to content

Instantly share code, notes, and snippets.

@dtolb
Created December 17, 2017 04:21
Show Gist options
  • Save dtolb/e56cb632b9e965b185546c5527093d79 to your computer and use it in GitHub Desktop.
Save dtolb/e56cb632b9e965b185546c5527093d79 to your computer and use it in GitHub Desktop.
keysetup.json
{
"title": "Windows keys",
"rules": [
{
"description": "Home/end setup",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"command",
"shift"
]
}
],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^org\\.vim\\.",
"^com.googlecode.iterm2"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "end"
},
"to": [
{
"key_code": "e",
"modifiers": [
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^org\\.vim\\.",
"^com.googlecode.iterm2"
]
}
]
},
{
"type": "basic",
"from": {
"key_code": "home"
},
"to": [
{
"key_code": "a",
"modifiers": [
"control"
]
}
],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^org\\.vim\\.",
"^com.googlecode.iterm2"
]
}
]
},
{
"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"
]
}
]
},
{
"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"
]
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment