Created
May 3, 2020 14:39
-
-
Save amiorin/297f8518e5fe11aae19a357001347208 to your computer and use it in GitHub Desktop.
Change command + h/j/k/l to Arrows in Intellij and PyCharm
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": "Vi Style Arrows", | |
"rules": [ | |
{ | |
"description": "Change command + h/j/k/l to Arrows", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.jetbrains.intellij", | |
"com.jetbrains.pycharm" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.jetbrains.intellij", | |
"com.jetbrains.pycharm" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.jetbrains.intellij", | |
"com.jetbrains.pycharm" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": [ | |
"com.jetbrains.intellij", | |
"com.jetbrains.pycharm" | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment