Skip to content

Instantly share code, notes, and snippets.

@MortenDHansen
Last active December 2, 2020 13:48
Show Gist options
  • Save MortenDHansen/0ce3691830ec3207bf63415589f85f8d to your computer and use it in GitHub Desktop.
Save MortenDHansen/0ce3691830ec3207bf63415589f85f8d to your computer and use it in GitHub Desktop.
Make a reasonable key binding for home and end on mac osx
/*
File should be located: ~/Library/KeyBindings/DefaultKeyBinding.dict
Nobody in the history of the world, and in the future to come, would think it makes sense that home and end buttons on mac behaves like they were Page up and Page down. Nobody.
And it seems nobody at the almighty, all-knowing, we-tell-you-what-YOU-want corporation Apple thought it was an idea to make a choice available...
This fixes it:
*/
{
"\UF729" = "moveToBeginningOfLine:";
"\UF72B" = "moveToEndOfLine:";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment