Last active
May 14, 2021 05:52
-
-
Save kawaz/5203e1561af0e6f0f72a18439dc2d905 to your computer and use it in GitHub Desktop.
macOSのテキスト系コンポーネントでのキーカスタマイズ
This file contains 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://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html | |
// ^ for Control | |
// $ for Shift | |
// ~ for Option | |
// @ for Command | |
// # for numeric keypad | |
{ | |
// home/end | |
"\UF729" = "moveToBeginningOfLine:"; | |
"\UF72B" = "moveToEndOfLine:"; | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
"^\UF729" = "moveToBeginningOfDocument:"; | |
"^\UF72B" = "moveToEndOfDocument:"; | |
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; | |
// page up/down | |
"\UF72C" = "pageUp:"; | |
"\UF72D" = "pageDown:"; | |
} |
This file contains 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
#!/bin/bash | |
mkdir -p ~/Library/KeyBindings/ && curl -sL https://gist.github.com/kawaz/5203e1561af0e6f0f72a18439dc2d905/raw/DefaultKeyBinding.dict -o ~/Library/KeyBindings/DefaultKeyBinding.dict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
インストールは↓こんな感じにしてやれば良い。上書きするので既存がある場合は注意。