Created
July 4, 2009 02:37
-
-
Save kylexlau/140408 to your computer and use it in GitHub Desktop.
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
{ | |
/* | |
http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html | |
property list: NeXT text, XML file | |
string, list, dictionary; key-value pairs | |
"@t" = Command-t | |
"^t" = Control-t | |
"~t" = Option-t | |
"@^T" = Command-Control-Shift-t | |
"~ " = Option-space | |
"@$#5" = Command-Shift-Numpad 5 | |
"~\\$" = Option-$ | |
*/ | |
/* Ctrl shortcuts */ | |
"^l" = "centerSelectionInVisibleArea:"; /* C-l Recenter */ | |
"^/" = "undo:"; /* C-/ Undo */ | |
"^_" = "undo:"; /* C-_ Undo */ | |
"^ " = "setMark:"; /* C-Spc Set mark */ | |
"^\@" = "setMark:"; /* C-@ Set mark */ | |
"^w" = "deleteToMark:"; /* C-w Delete to mark */ | |
/* Meta shortcuts */ | |
"~f" = "moveWordForward:"; /* M-f Move forward word */ | |
"~b" = "moveWordBackward:"; /* M-b Move backward word */ | |
"~<" = "moveToBeginningOfDocument:"; /* M-< Move to beginning of document */ | |
"~>" = "moveToEndOfDocument:"; /* M-> Move to end of document */ | |
"~v" = "pageUp:"; /* M-v Page Up */ | |
"~/" = "complete:"; /* M-/ Complete */ | |
"~c" = ( "capitalizeWord:", /* M-c Capitalize */ | |
"moveForward:", | |
"moveForward:"); | |
"~u" = ( "uppercaseWord:", /* M-u Uppercase */ | |
"moveForward:", | |
"moveForward:"); | |
"~l" = ( "lowercaseWord:", /* M-l Lowercase */ | |
"moveForward:", | |
"moveForward:"); | |
"~d" = "deleteWordForward:"; /* M-d Delete word forward */ | |
"^~h" = "deleteWordBackward:"; /* M-C-h Delete word backward */ | |
"~\U007F" = "deleteWordBackward:"; /* M-Bksp Delete word backward */ | |
"~t" = "transposeWords:"; /* M-t Transpose words */ | |
"~\@" = ( "setMark:", /* M-@ Mark word */ | |
"moveWordForward:", | |
"swapWithMark"); | |
"~h" = ( "setMark:", /* M-h Mark paragraph */ | |
"moveToEndOfParagraph:", | |
"swapWithMark"); | |
/* C-x shortcuts */ | |
"^x" = { | |
"u" = "undo:"; /* C-x u Undo */ | |
"k" = "performClose:"; /* C-x k Close */ | |
"^f" = "openDocument:"; /* C-x C-f Open (find file) */ | |
"^x" = "swapWithMark:"; /* C-x C-x Swap with mark */ | |
"^m" = "selectToMark:"; /* C-x C-m Select to mark*/ | |
"^s" = "saveDocument:"; /* C-x C-s Save */ | |
"^w" = "saveDocumentAs:"; /* C-x C-w Save as */ | |
}; | |
/* Incremental search */ | |
"^s" = "ISIM_incrementalSearch:"; | |
"^r" = "ISIM_reverseIncrementalSearch:"; | |
"$g" = "abort:"; | |
"~\Uf700" = "ISIM_handleOptionUpArrow:"; | |
"~\Uf701" = "ISIM_handleOptionDownArrow:"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment