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
後で↓このへんを参考に設定を追加したい。
https://qiita.com/See_Ku/items/4bd8cfc6a7c4266f9bb6
https://zariganitosh.hatenablog.jp/entry/20101026/text_key_binding