-
-
Save krackers/14bea1ed61de129d8754dc7971f5c030 to your computer and use it in GitHub Desktop.
Revisions
-
zsimic revised this gist
Dec 13, 2020 . 1 changed file with 7 additions and 17 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,13 @@ { /* ~/Library/KeyBindings/DefaultKeyBinding.dict See https://gist.github.com/zsimic/1367779, prefix cheatsheet: Char Short Key $ S- Shift ⇧ ^ C- CTRL ⌃ ~ O- Option ⌥ (⊞ Win key position on PC) @ M- Command ⌘ (Alt position on PC) # Numeric Keypad */ /*---- Navigation ----*/ -
zsimic revised this gist
Dec 13, 2020 . 1 changed file with 48 additions and 39 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,59 +1,68 @@ { /* ~/Library/KeyBindings/DefaultKeyBinding.dict See system defaults: plutil -convert xml1 /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict -o -|pl|grep -v noop:|ruby -pe'$_.gsub!(/[^ -~\n]/){"\\U%04x"%$&.ord}' Useful links: - http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html - http://xahlee.info/kbd/osx_keybinding.html - http://xahlee.info/kbd/osx_keybinding_action_code.html Prefix cheatsheet: Char Short Key $ S- Shift ⇧ ^ C- CTRL ⌃ ~ O- Option ⌥ (⊞ Win key position on PC) @ M- Command ⌘ (Alt position on PC) # Numeric Keypad */ /*---- Navigation ----*/ /* Up/down is mostly for a nicer laptop navigation (no Home, PgUp etc keys) */ "~\Uf700" = "pageUp:"; /* O-up Page up */ "~$\Uf700" = "pageUpAndModifySelection:"; /* O-S-up Select + page up */ "@\Uf700" = "moveToBeginningOfDocument:"; /* M-up Beginning of document */ "@$\Uf700" = "moveToBeginningOfDocumentAndModifySelection:"; /* M-S-up Select to beginning of document */ "~\Uf701" = "pageDown:"; /* O-down Page down */ "~$\Uf701" = "pageDownpAndModifySelection:"; /* O-S-down Select + page down */ "@\Uf701" = "moveToEndOfDocument:"; /* M-down End of document */ "@$\Uf701" = "moveToEndOfDocumentAndModifySelection:"; /* M-S-down Select to end of document */ /* Windows defaults are more convenient */ "^\Uf702" = "moveWordBackward:"; /* C-left Move word left */ "^$\Uf702" = "moveWordBackwardAndModifySelection:"; /* C-S-left Select word left */ "^\Uf703" = "moveWordForward:"; /* C-right Move word right */ "^$\Uf703" = "moveWordForwardAndModifySelection:"; /* C-S-right Select word right */ "\Uf729" = "moveToBeginningOfLine:"; /* home Beginning of line */ "$\Uf729" = "moveToBeginningOfLineAndModifySelection:"; /* S-home Select to beginning of line */ "^\Uf729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */ "^$\Uf729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-S-home Select to beginning of document */ "\Uf72b" = "moveToEndOfLine:"; /* end End of line */ "$\Uf72b" = "moveToEndOfLineAndModifySelection:"; /* S-end Select to end of line */ "^\Uf72b" = "moveToEndOfDocument:"; /* C-end End of document */ "^$\Uf72b" = "moveToEndOfDocumentAndModifySelection:"; /* C-S-end Select to end of document */ "\Uf72c" = "pageUp:"; /* PageUp Page up */ "$\Uf72c" = "pageUpAndModifySelection:"; /* S-PageUp Select + page up */ "@\Uf72c" = "scrollPageUp:"; /* M-PageUp Scroll page up */ "\Uf72d" = "pageDown:"; /* PageDn Page down */ "$\Uf72d" = "pageDownAndModifySelection:"; /* S-PageDn Select + page down */ "@\Uf72d" = "scrollPageDown:"; /* M-PageDn Scroll page down */ /*---- Editing ----*/ "^\U007f" = "deleteWordBackward:"; /* C-Del Delete word backward */ "^\Uf728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */ "$\U000a" = "insertLineBreak:"; /* S-Ret Line break */ } -
zsimic revised this gist
Dec 5, 2020 . 1 changed file with 37 additions and 38 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,60 +1,59 @@ { /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */ /*---- Navigation ----*/ "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */ "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */ "^\UF702" = "moveWordLeft:"; /* C-left Move word left */ "^\UF703" = "moveWordRight:"; /* C-right Move word right */ "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */ "\UF72B" = "moveToEndOfLine:"; /* end End of line */ "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */ "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */ "\UF72C" = "pageUp:"; /* page up Page up */ "\UF72D" = "pageDown:"; /* page dn Page down */ "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */ "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */ "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */ "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */ "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */ "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */ "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */ "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */ "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */ "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */ /*---- Editing ----*/ "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */ "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */ "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */ "^a" = "selectAll:"; /* C-a Select all */ "^x" = "cut:"; /* C-x Cut */ "^c" = "copy:"; /* C-c Copy */ "^v" = "paste:"; /* C-v Paste */ "^z" = "undo:"; /* C-z Undo */ "^y" = "redo:"; /* C-y Redo */ /*---- Operations ----*/ "^s" = "save:"; /* C-s Save */ "^S" = "saveAs:"; /* C-Shft-s Save as */ "\UF704" = "showContextHelp:"; /* F1 Show help */ "^\UF707" = "performClose:"; /* C-F4 Close document */ } -
zsimic revised this gist
Dec 5, 2020 . 1 changed file with 38 additions and 72 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,94 +1,60 @@ { /* ~/Library/KeyBindings/DefaultKeyBinding.dict, see http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html */ /*---- Navigation ----*/ "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */ "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */ "^\UF702" = "moveWordLeft:"; /* C-left Move word left */ "^\UF703" = "moveWordRight:"; /* C-right Move word right */ "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */ "\UF72B" = "moveToEndOfLine:"; /* end End of line */ "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */ "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */ "\UF72C" = "pageUp:"; /* page up Page up */ "\UF72D" = "pageDown:"; /* page dn Page down */ "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */ "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */ "$^\UF702" = "moveWordLeftAndModifySelection:"; /* C-Shft-left Select word left */ "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */ "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */ "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */ "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */ "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */ "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */ "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */ /*---- Editing ----*/ "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */ "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */ "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */ "^a" = "selectAll:"; /* C-a Select all */ "^x" = "cut:"; /* C-x Cut */ "^c" = "copy:"; /* C-c Copy */ "^v" = "paste:"; /* C-v Paste */ "^z" = "undo:"; /* C-z Undo */ "^y" = "redo:"; /* C-y Redo */ /*---- Operations ----*/ "^s" = "save:"; /* C-s Save */ "^S" = "saveAs:"; /* C-Shft-s Save as */ "\UF704" = "showContextHelp:"; /* F1 Show help */ "^\UF707" = "performClose:"; /* C-F4 Close document */ } -
zsimic created this gist
Nov 15, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,94 @@ //~/Library/KeyBindings/DefaultKeyBinding.dict { /* Keybindings for partial windows emulation. Compiled by Jacob Rus. * * Steve Jacobs did much of the work on this. * * Note that the bindings at the end, for Ctrl-a, Ctrl-n, etc. * will override OS X defaults. Remove that section if you like. */ /***** HOME-END KEYS *****/ "\UF729" = "moveToBeginningOfLine:"; /* home Beginning of line */ "\UF72B" = "moveToEndOfLine:"; /* end End of line */ "$\UF729" = "moveToBeginningOfLineAndModifySelection"; /* Shft-home Select to beginning of line */ "$\UF72B" = "moveToEndOfLineAndModifySelection"; /* Shft-end Select to end of line */ "^\UF729" = "moveToBeginningOfDocument:"; /* C-home Beginning of document */ "^\UF72B" = "moveToEndOfDocument:"; /* C-end End of document */ "^$\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; /* C-Shft-home Select to beginning of document */ "^$\UF72B" = "moveToEndOfDocumentAndModifySelection:"; /* C-Shft-end Select to end of document */ /***** PAGE UP-PAGE DOWN KEYS *****/ "\UF72C" = "pageUp:"; /* page up Page up */ "\UF72D" = "pageDown:"; /* page dn Page down */ "~\UF72C" = "scrollPageUp:"; /* O-pg up Scroll page up */ "~\UF72D" = "scrollPageDown:"; /* O-pg dn Scroll page down */ /***** DELETE-FORWARD DELETE KEYS *****/ // "~\U007F" = "undo:"; /* O-Del Undo */ // "~$\U007F" = "redo:"; /* O-Shft-Del Undo */ "^\U007F" = "deleteWordBackward:"; /* C-Del Delete word backward */ "^\UF728" = "deleteWordForward:"; /* C-FwdDel Delete word forward */ /***** DELETE-INSERT(HELP) KEYS *****/ /* Note that the Windows "insert" key is the Mac "help" key */ // "$\UF728" = "cut:"; /* Shft-FwdDel Cut */ // "^\UF746" = "copy:"; /* C-Help Copy */ // "$\UF746" = "paste:"; /* Shft-Help Paste */ /***** RETURN KEY *****/ // "$\U000A" = "insertLineBreak:"; /* Shft-Ret Line break */ /***** F KEYS *****/ // "\UF704" = "showContextHelp:"; /* F1 Show help */ "^\UF707" = "performClose:"; /* C-F4 Close document */ /***** ARROWS *****/ "^\UF700" = "moveToBeginningOfParagraph:"; /* C-up Move to beginning of paragraph */ "^\UF701" = "moveToEndOfParagraph:"; /* C-down Move to end of paragraph */ "^$\UF700" = "moveToBeginningOfParagraphAndModifySelection:"; /* C-Shft-up Select to beginning of paragraph */ "^$\UF701" = "moveToEndOfParagraphAndModifySelection:"; /* C-Shft-down Select to end of paragraph */ "^\UF702" = "moveWordLeft:"; /* C-left Move word left */ "^\UF703" = "moveWordRight:"; /* C-right Move word right */ "$^\UF702" = "moveWordBackwardAndModifySelection:"; /* "$^\UF702" = "moveWordLeftAndModifySelection:"; */ /* C-Shft-left Select word left */ "$^\UF703" = "moveWordRightAndModifySelection:"; /* C-Shft-right Select word right */ /***** CTRL + LETTERS *****/ "^a" = "selectAll:"; /* C-a Select all */ "^x" = "cut:"; /* C-x Cut */ "^c" = "copy:"; /* C-c Copy */ "^v" = "paste:"; /* C-v Paste */ "^z" = "undo:"; /* C-z Undo */ "^y" = "redo:"; /* C-y Redo */ "^s" = "save:"; /* C-s Save */ "^S" = "saveAs:"; /* C-Shft-s Save as */ // "^p" = "print:"; /* C-p Print */ }