Created
August 10, 2017 20:04
-
-
Save DerekSelander/c03463fbd22a356b479683fa5400788c to your computer and use it in GitHub Desktop.
Karabiner elements mini vim with d + , word left d + . word right
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 Mode (rev 3) + Derek's mods", | |
| "rules": [ | |
| { | |
| "description": "Vi Mode #1 [S + H/J/K/L → Arrow Keys]", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "s", | |
| "modifiers": { | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "fn", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "s" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "h", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "j", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "down_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "k", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "up_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "l", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "return_or_enter", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "return_or_enter" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "spacebar", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "spacebar" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "tab", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "tab" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "hyphen", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "hyphen" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "equal_sign" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "open_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "open_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "close_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "close_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "backslash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "backslash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "non_us_pound", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "non_us_pound" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "semicolon", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "semicolon" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "quote", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "quote" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "grave_accent_and_tilde", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "grave_accent_and_tilde" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "comma", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "comma" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "period", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "period" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "slash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "slash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "non_us_backslash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "non_us_backslash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "1", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "1" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "2" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "3", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "3" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "5", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "5" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "6", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "6" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "7", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "7" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "8", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "8" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "9", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "9" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "a" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "b", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "b" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "c", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "c" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "d", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "d" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "e", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "e" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "g", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "g" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "i", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "i" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "m", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "m" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "n", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "n" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "o", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "o" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "p", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "p" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "q" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "r", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "r" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "t", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "t" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "u", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "u" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "v", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "v" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "w", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "w" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "x", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "x" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "y", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "y" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "z", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "s" | |
| }, | |
| { | |
| "key_code": "z" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Vi Mode #1d [D + H/J/K/L → Arrow Keys]", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "d", | |
| "modifiers": { | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "fn", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "d" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "h", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "j", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "down_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "k", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "up_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "l", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_arrow" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "return_or_enter", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "return_or_enter" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "spacebar", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "spacebar" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "tab", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "tab" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "hyphen", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "hyphen" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "equal_sign", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "equal_sign" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "open_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "open_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "close_bracket", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "close_bracket" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "backslash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "backslash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "non_us_pound", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "non_us_pound" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "semicolon", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "semicolon" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "quote", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "quote" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "grave_accent_and_tilde", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "grave_accent_and_tilde" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "comma", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_arrow", | |
| "modifiers": "right_option" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "period", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_arrow", | |
| "modifiers": "right_option" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "slash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "slash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "non_us_backslash", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "non_us_backslash" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "1", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "1" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "2", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "2" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "3", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "3" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "5", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "5" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "6", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "6" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "7", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "7" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "8", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "8" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "9", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "9" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "a" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "b", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "b" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "c", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "c" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "e", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "e" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "g", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "g" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "i", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "i" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "m", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "m" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "n", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "n" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "o", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "o" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "p", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "p" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "q" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "r", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "r" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "s", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "s" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "t", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "t" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "u", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "u" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "v", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "v" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "w", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "w" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "x", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "x" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "y", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "y" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "z", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "d" | |
| }, | |
| { | |
| "key_code": "z" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Vi Mode #2 [S/D + F → Fn]", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "f", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "fn" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Vi Mode #3 [S/D + F + H/J/K/L → Home / Page Down / Page Up / End]", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "h", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "home" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "j", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "page_down" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "k", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "page_up" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "l", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "end" | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Vi Mode #4 [S/D + 0/4 → To the beginning/end of the line]", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "0", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "a", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "4", | |
| "modifiers": { | |
| "mandatory": [ | |
| "control", | |
| "fn" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "e", | |
| "modifiers": [ | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "conditions": [ | |
| { | |
| "type": "frontmost_application_unless", | |
| "bundle_identifiers": [ | |
| "^org\\.vim\\." | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment