Created
March 25, 2020 01:50
-
-
Save tyru/7bd65c8c978d706ee6a45860de7864fd to your computer and use it in GitHub Desktop.
[Karabiner Elements][macOS] Windows-like word movement/selection/deletion
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": "[macOS] Windows-like word movement/selection/deletion", | |
"rules": [ | |
{ | |
"description": "Ctrl + Arrow Keys to Option + Arrow Keys", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "up_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "down_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl + Shift + Arrow Keys to Option + Shift + Arrow Keys", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "up_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "up_arrow", | |
"modifiers": [ | |
"option", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "down_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "down_arrow", | |
"modifiers": [ | |
"option", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "left_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_arrow", | |
"modifiers": [ | |
"option", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_arrow", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"shift" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "right_arrow", | |
"modifiers": [ | |
"option", | |
"shift" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl + BS/Del Keys to Option + BS/Del Keys", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "delete_or_backspace", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "delete_or_backspace", | |
"modifiers": [ | |
"option" | |
] | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Big thanks to @Eivy
https://twitter.com/Eivy_m/status/1242624852760002562
https://gist.github.com/Eivy/d2832e8671c863bd97fc14d6a0e44036