Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
439 lines (433 sloc) 9.79 KB
{
"title": "Windows",
"rules": [
{
"description": "Windows shortcuts",
"manipulators": [
{
"from": {
"key_code": "home",
"modifiers": { "mandatory": ["left_control", "left_shift"], "optional": ["any"] }
},
"to": [{
"key_code": "up_arrow",
"modifiers": ["left_command", "left_shift"]
}],
"type": "basic"
},
{
"description": "Post ( if left_shift pressed alone",
"from": {
"key_code": "left_shift",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_shift",
"modifiers": []
}
],
"to_if_alone": [
{
"key_code": "semicolon",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "home",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "up_arrow",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "home",
"modifiers": { "mandatory": ["right_control"], "optional": ["any"] }
},
"to": [{
"key_code": "up_arrow",
"modifiers": ["right_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "home",
"modifiers": { "mandatory": ["left_shift"], "optional": ["any"] }
},
"to": [{
"key_code": "left_arrow",
"modifiers": ["left_command", "left_shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "home",
"modifiers": {"optional": ["any"]}
},
"to": [{
"key_code": "left_arrow",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": { "mandatory": ["left_control", "left_shift"], "optional": ["any"] }
},
"to": [{
"key_code": "down_arrow",
"modifiers": ["left_command", "left_shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "down_arrow",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": { "mandatory": ["right_control"], "optional": ["any"] }
},
"to": [{
"key_code": "down_arrow",
"modifiers": ["right_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": { "mandatory": ["left_shift"], "optional": ["any"] }
},
"to": [{
"key_code": "right_arrow",
"modifiers": ["left_command", "left_shift"]
}],
"type": "basic"
},
{
"from": {
"key_code": "end",
"modifiers": {"optional": ["any"]}
},
"to": [{
"key_code": "right_arrow",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "delete_or_backspace",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "delete_or_backspace",
"modifiers": ["left_option"]
}],
"type": "basic"
},
{
"from": {
"key_code": "delete_forward",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "delete_forward",
"modifiers": ["left_option"]
}],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "a",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$",
"^iTerm",
"^net\\.sourceforge\\.iTerm",
"^com\\.googlecode\\.iterm2"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "b",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "c",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "c",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "c",
"modifiers": { "mandatory": ["left_command"], "optional": ["any"] }
},
"to": [{
"key_code": "c",
"modifiers": ["left_control"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "w",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "w",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "q",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "f",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "f3",
"modifiers": {"optional": ["any"]}
},
"to": [{
"key_code": "g",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "i",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "n",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "o",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "p",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "s",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "slash",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "v",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "v",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "x",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "x",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "y",
"modifiers": ["left_command"]
}],
"type": "basic"
},
{
"from": {
"key_code": "z",
"modifiers": { "mandatory": ["left_control"], "optional": ["any"] }
},
"to": [{
"key_code": "z",
"modifiers": ["left_command"]
}],
"conditions": [
{
"type": "frontmost_application_unless",
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
]
}
],
"type": "basic"
}
]
}
]
}