Last active
November 16, 2022 16:24
-
-
Save davipatti/2365ac1797756c789b9a3f18b581608e to your computer and use it in GitHub Desktop.
[DefaultKeyBinding.dict] ~/Library/KeyBindings/DefaultKeyBinding.dict. Getting 'home' and 'end' keys to do what they're meant to on a mac. From https://damieng.com/blog/2015/04/24/make-home-end-keys-behave-like-windows-on-mac-os-x.
This file contains hidden or 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
{ | |
"\UF729" = "moveToBeginningOfLine:"; /* Home */ | |
"\UF72B" = "moveToEndOfLine:"; /* End */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ | |
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */ | |
"@\UF729" = "moveToBeginningOfDocument:"; /* Command + Home */ | |
"^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */ | |
"@\UF72B" = "moveToEndOfDocument:"; /* Command + End */ | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Shift + Ctrl + Home */ | |
"$@\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* Command + Ctrl + Home */ | |
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Shift + Ctrl + End */ | |
"$@\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* Command + Ctrl + End */ | |
} |
This file contains hidden or 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
https://gist.github.com/trusktr/1e5e516df4e8032cbc3d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment