Skip to content

Instantly share code, notes, and snippets.

@tyru
Created March 25, 2020 01:50
Show Gist options
  • Save tyru/7bd65c8c978d706ee6a45860de7864fd to your computer and use it in GitHub Desktop.
Save tyru/7bd65c8c978d706ee6a45860de7864fd to your computer and use it in GitHub Desktop.
[Karabiner Elements][macOS] Windows-like word movement/selection/deletion
{
"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"
}
]
}
]
}
@tyru
Copy link
Author

tyru commented Mar 25, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment