Skip to content

Instantly share code, notes, and snippets.

@cranmer
Last active August 19, 2022 20:18
Show Gist options
  • Save cranmer/538635e8d54609d056c78e4cc3fe7735 to your computer and use it in GitHub Desktop.
Save cranmer/538635e8d54609d056c78e4cc3fe7735 to your computer and use it in GitHub Desktop.
Karabinder-elements control+a and control+e for begin and end of line

Microsoft office seems to over-ride control+a to be select all and control+e doesn't seem to do anything. This fixes that.

Add the remap_for_office.json file to ~/.config/karabiner/assets/complex_modifications/ then go to add complex modification and you should see a new rule called "Remap for office"

See also: https://www.youtube.com/watch?v=iiSIaMD4vqY https://apple.stackexchange.com/questions/258959/outlook-15-27-ctrl-a-and-ctrl-e-shortcuts-no-longer-working https://apple.stackexchange.com/questions/16135/remap-home-and-end-to-beginning-and-end-of-line

{
"title": "Remap for office",
"rules": [
{
"description": "Remap for office",
"manipulators": [
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "home"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.microsoft\\.Outlook$",
"^com\\.microsoft\\.Excel$",
"^com\\.microsoft\\.Powerpoint$",
"^com\\.microsoft\\.Word$"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "end"
}
],
"conditions": [
{
"type": "frontmost_application_if",
"bundle_identifiers": [
"^com\\.microsoft\\.Outlook$",
"^com\\.microsoft\\.Excel$",
"^com\\.microsoft\\.Powerpoint$",
"^com\\.microsoft\\.Word$"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment