Skip to content

Instantly share code, notes, and snippets.

@vdroznik
Created January 29, 2024 08:38
Show Gist options
  • Save vdroznik/192edd9f483203b56e33d6a526669db0 to your computer and use it in GitHub Desktop.
Save vdroznik/192edd9f483203b56e33d6a526669db0 to your computer and use it in GitHub Desktop.
Remap external mac keyboard home/end keys
// ~/Library/KeyBindings/DefaultKeyBindings.dict (create if not exists then restart macos)
{
"\UF729" = moveToBeginningOfLine:; // home
"\UF72B" = moveToEndOfLine:; // end
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
"^\UF729" = "moveToBeginningOfDocument:"; // ctrl+home
"^\UF72B" = "moveToEndOfDocument:"; // ctrl+end
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; // shift+ctrl+home
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; // shift+ctrl+end
"$\UF728" = cut:; // shift + del
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment