From 9d7c140b9c96a2e0be0ab64c72c3e0f5cacae3f5 Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Fri, 24 Aug 2012 07:57:37 -0700 Subject: Create gh-pages branch via GitHub --- .gitignore | 1 - DefaultKeyBinding.dict | 180 -------------- KeyBindings.md | 109 -------- index.html | 662 ++++++++++++++++++++++++------------------------- params.json | 2 +- readme.md | 467 ---------------------------------- repo.min.js | 19 -- 7 files changed, 332 insertions(+), 1108 deletions(-) delete mode 100644 .gitignore delete mode 100644 DefaultKeyBinding.dict delete mode 100644 KeyBindings.md delete mode 100644 readme.md delete mode 100755 repo.min.js diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 496ee2c..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.DS_Store \ No newline at end of file diff --git a/DefaultKeyBinding.dict b/DefaultKeyBinding.dict deleted file mode 100644 index 7879968..0000000 --- a/DefaultKeyBinding.dict +++ /dev/null @@ -1,180 +0,0 @@ -{ - // copy character before cursor - "~z" = (moveLeftAndModifySelection:, copy:, moveRight:); - // repeat character before cursor - "~r" = (moveLeftAndModifySelection:, copy:, moveRight:, paste:); - // transpose characters - "~t" = (transpose:); - - // uppercase word - "~+" = (uppercaseWord:, moveRight:, moveRight:); - // lowercase word - "~-" = (lowercaseWord:, moveRight:, moveRight:); - // capitalize word - "~." = (capitalizeWord:, moveRight:, moveRight:); - - // delete word before cursor - "^w" = "deleteWordBackward:"; - // select word - "~w" = selectWord:; - // cut word (fold) - "~f" = (selectWord:, cut:); - // copy word (grab) - "~g" = (selectWord:, copy:); - // paste word (hit) - "~h" = (selectWord:, paste:); - - // select entire line/paragraph - "~l" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, moveRightAndModifySelection:); - // select from beginning of paragrah to last character - "~s" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:); - // delete line/paragraph - "~d" = (selectParagraph:, delete:, moveToBeginningOfParagraph:); - // copy paragraph - "~y" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, copy:); - // cut paragraph - "~x" = (moveToBeginningOfParagraph:, moveToEndOfParagraphAndModifySelection:, cut:); - // paste paragraph below - "~p" = (moveToEndOfParagraph:,moveRight:,insertNewline:,moveLeft:, paste:); - // paste paragraph above - "~P" = (moveToBeginningOfParagraph:, moveLeft:, paste:); - // select to beginning of paragraph and copy - "^A" = (moveToBeginningOfParagraphAndModifySelection:, copy:); - // select to end of paragraph and copy - "^E" = (moveToEndOfParagraphAndModifySelection:, copy:); - // cut to beginning of paragraph - "~q" = (moveToBeginningOfParagraphAndModifySelection:, cut:); - // cut to end of paragraph - "~k" = (moveToEndOfParagraphAndModifySelection:, cut:); - - // move paragraph up a line, inserting blank space after - "~," = (moveToBeginningOfParagraph:, deleteBackward:, moveToEndOfParagraph:, insertNewline:, deleteToBeginningOfParagraph:, moveRight:); - // move paragraph to end of document - "~ " = (selectParagraph:, setMark:, deleteToMark:, moveToEndOfDocument:, yank:, swapWithMark:); - // blank line after current - "~o" = (moveToEndOfParagraph:, insertNewline:); - // blank line before current - "~O" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:); - - // comment with "//" - "@~/" = (moveToBeginningOfParagraph:, insertText:,"// "); - // comment with "#" - "@~3" = (moveToBeginningOfParagraph:, insertText:,"# "); - - - // bold selection - "@~b" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "**", yank:, moveLeft:, insertText:, "**", moveLeft:, moveLeft:); - // italicize selection - "@~i" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "*", yank:, moveLeft:, insertText:, "*", moveLeft:); - - "^@w" = { - // return and tab - "\U000A" = insertNewlineIgnoringFieldEditor:; - "\U0009" = (insertText:, "\t"); - - // Headlines - "1" = (moveToBeginningOfParagraph:, insertText:, "# "); - "2" = (moveToBeginningOfParagraph:, insertText:, "## "); - "3" = (moveToBeginningOfParagraph:, insertText:, "### "); - "4" = (moveToBeginningOfParagraph:, insertText:, "#### "); - - // links - "l" = { // markdown link - // create a link for selected text, cursor between () "[selected text](|)" - "t" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", yank:, moveLeft:, insertText:, "]()", moveLeft:); // link text - // create a link for selected text, inserting clipboard as url "[|selected text](clipboard contents)" - "c" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", setMark:, yank:, moveLeft:, insertText:, "](", pasteAsPlainText:, insertText:, ")", swapWithMark:); // link with clipboard - }; - // image - "i" = { // link as image - // same as ll, but with image syntax "![selected text](|)" - "t" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "![", yank:, moveLeft:, insertText:, "]()", moveLeft:); // image link for text - // same as lc, but with image syntax "![selected text](|)" - "c" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "![", setMark:, yank:, moveLeft:, insertText:, "](", pasteAsPlainText:, insertText:, ")", swapWithMark:); // image with clipboard - }; - // references - ":" = { - // create a reference from selected text - "t" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", setMark:, yank:, moveLeft:, insertText:, "]: ", moveLeft:); - // create a reference from selected text, clipboard as url - "c" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", setMark:, yank:, moveLeft:, insertText:, "]: ", pasteAsPlainText:, swapWithMark:); - }; - // insert reference link - "[" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", setMark:, yank:, moveLeft:, insertText:, "][]", moveLeft:); - - // lists - "+" = (setMark:, moveToBeginningOfParagraph:, insertText:, " + "); - "-" = (setMark:, moveToBeginningOfParagraph:, insertText:, " - "); - "*" = (setMark:, moveToBeginningOfParagraph:, insertText:, " * "); - - // HTML - "=" = (insertText:, "=\"\"", moveLeft:); - "e" = (insertText:, "&;", moveLeft:); // entity - "/" = (insertText:, "http://"); // http:// - }; - - // new list item after current - "~L" = (moveToEndOfParagraph:, insertNewline:, insertText:, " * "); - - "^@s" = { // surround commands - // wrap () with spaces - "(" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "( ", yank:, moveLeft:, insertText:, " )", moveLeft:); - // wrap () no spaces - ")" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "(", yank:, moveLeft:, insertText:, ")", moveLeft:); - // wrap [] with spaces - "[" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[ ", yank:, moveLeft:, insertText:, " ]", moveLeft:); - // wrap [] no spaces - "]" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "[", yank:, moveLeft:, insertText:, "]", moveLeft:); - // wrap {} with spaces - "{" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "{ ", yank:, moveLeft:, insertText:, " }", moveLeft:); - // wrap {} no spaces - "}" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "{", yank:, moveLeft:, insertText:, "}", moveLeft:); - // wrap <> with spaces - "<" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "< ", yank:, moveLeft:, insertText:, " >", moveLeft:); - // wrap <> no spaces - ">" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "<", yank:, moveLeft:, insertText:, ">", moveLeft:); - // wrap single quotes - "'" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "'", yank:, moveLeft:, insertText:, "'", moveLeft:); - // wrap backticks - "`" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "`", yank:, moveLeft:, insertText:, "`", moveLeft:); - // wrap double quote - "\"" = (setMark:, swapWithMark:, moveRightAndModifySelection:, deleteToMark:, insertText:, "\"", yank:, moveLeft:, insertText:, "\"", moveLeft:); - }; - - // move line up - "^@k" = (selectParagraph:, setMark:, deleteToMark:, moveLeft:, moveToBeginningOfParagraph:, yank:, moveLeft:, selectToMark:, moveLeft:); - // move line down - "^@j" = (selectParagraph:, setMark:, deleteToMark:, moveToEndOfParagraph:, moveRight:, setMark:, yank:, moveLeft:, selectToMark:); - // indent line - "^@l" = (moveToBeginningOfParagraph:, insertText:, "\t"); - // outdent line (all the way) - "^@h" = (moveToBeginningOfParagraph:, selectWord:, delete:); - // copy line and paste above - "^~k" = (selectParagraph:, copy:, moveLeft:, paste:, moveLeft:); - // copy line and paste below - "^~j" = (selectParagraph:, copy:, moveRight:, paste:, moveLeft:); - // modify selection up - "@~$\Uf700" = (selectParagraph:, moveParagraphBackwardAndModifySelection:); - // modify selection down - "@~$\Uf701" = (selectParagraph:, moveParagraphForwardAndModifySelection:); - - // TextMate Command-Return (I wish this worked in some form, but it doesn't seem to) - // "@\U000A" = (moveToEndOfParagraph:, insertNewline:); - // "@$\U000A" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:); - - // Forward delete to end of paragraph - "@\Uf728" = deleteToEndOfParagraph:; - // Page Up - "\Uf72c" = pageUp:; - // Page Down - "\Uf72d" = pageDown:; - // Scroll up - "~\Uf72c" = scrollPageUp:; - // Scroll Down - "~\Uf72d" = scrollPageDown:; - - // bookmark - "~1" = setMark:; - // jump to bookmark - "~2" = (swapWithMark:,centerSelectionInVisibleArea:); -} \ No newline at end of file diff --git a/KeyBindings.md b/KeyBindings.md deleted file mode 100644 index 142364e..0000000 --- a/KeyBindings.md +++ /dev/null @@ -1,109 +0,0 @@ - - -DefaultKeyBindings.dict file for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys]. See Lri's [gists][lrigists] and [website][lriweb] for more coding madness. - -[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/ -[lriweb]: http://www.cs.helsinki.fi/u/lranta/ -[lrigists]: https://gist.github.com/Lri -[brett terpstra]: http://brettterpstra.com - -*Grouped items begin with the groups shortcut, followed by the Keys specified. Items separated by commas are sequential, not concurrent.* - -| Group | Keys | Function | -| :-------: | :---------------------: | :------------------------------------------------------ | -| | ⌥z | copy character before cursor | -| | ⌥r | repeat character before cursor | -| | ⌥t | transpose characters | -| | ⌥+ | uppercase word | -| | ⌥- | lowercase word | -| | ⌥. | capitalize word | -| | ^w | delete word before cursor | -| | ⌥w | select word | -| | ⌥f | cut word (fold) | -| | ⌥g | copy word (grab) | -| | ⌥h | paste word (hit) | -| | ⌥l | select entire line/paragraph | -| | ⌥s | select from beginning of paragrah to last character | -| | ⌥d | delete line/paragraph | -| | ⌥y | copy paragraph | -| | ⌥x | cut paragraph | -| | ⌥p | paste paragraph below | -| | ⌥⇧P | paste paragraph above | -| | ^⇧A | select to beginning of paragraph and copy | -| | ^⇧E | select to end of paragraph and copy | -| | ⌥q | cut to beginning of paragraph | -| | ⌥k | cut to end of paragraph | -| | ⌥, | move paragraph up a line, inserting blank space after | -| | ⌥␠ | move paragraph to end of document | -| | ⌥o | blank line after current | -| | ⌥⇧O | blank line before current | -| | ⌘⌥/ | comment with "//" | -| | ⌘⌥3 | comment with "#" | -[ All purpose key combos ] - - -| Group | Keys | Function | -| :---: | :--: | :------- | -| | ⌘⌥b | bold selection | -| | ⌘⌥i | italicize selection | -|^⌘w | ⏎ | force Return | -|^⌘w | ⇥ | force Tab | -|^⌘w | 1-4 | # Headlines | -|^⌘w | l,t | link text `"[selected text]( | )"` | -|^⌘w | l,c | clipboard link `"[ | selected text](clipboard contents)"` | -|^⌘w | i,t | image, selection as alt `"![selected text]( | )"` | -|^⌘w | i,c | clipboard image `"![ | selected text](clipboard contents)"` | -|^⌘w | :,t | create a reference from selected text | -|^⌘w | :,c | create a reference from selected text, clipboard as url | -|^⌘w | [ | insert reference link | -|^⌘w | +\|-\|* | lists | -|^⌘w | =,⌥⇧L | new list item after current | -|^⌘w | e | entity | -|^⌘w | =,/ | http:// | -[ Markdown-specific shortcuts (^⌘W) ] - - -| Group | Keys | Function | -| :---: | :--: | :------- | -|^⌘s | ( | wrap () with spaces | -|^⌘s | ) | wrap () no spaces | -|^⌘s | \[ | wrap [] with spaces | -|^⌘s | \] | wrap [] no spaces | -|^⌘s | { | wrap {} with spaces | -|^⌘s | } | wrap {} no spaces | -|^⌘s | < | wrap <> with spaces | -|^⌘s | > | wrap <> no spaces | -|^⌘s | ' | wrap single quotes | -|^⌘s | ` | wrap backticks | -|^⌘s | " | wrap double quote | -[ Surround (^⌘s) ] - - -| Group | Keys | Function | -| :---: | :--: | :------- | -| | ^⌘k | move line up | -| | ^⌘j | move line down | -| | ^⌘l | indent line | -| | ^⌘h | outdent line (all the way) | -| | ^⌥k | copy line and paste above | -| | ^⌥j | copy line and paste below | -| | ⌘⌥ꜛ| modify selection up | -| | ⌘⌥ꜜ| modify selection down | -| | ⌘␡ | Forward delete to end of paragraph | -[ List/Paragraph motion ] - - -| Group | Keys | Function | -| :---: | :-----------: | :--------------- | -| | PgUp | Page Up | -| | PgDown | Page Down | -| | ⌥PgUp | Scroll up | -| | ⌥PgDown| Scroll Down | -| | ⌥1 | bookmark | -| | ⌥2 | jump to bookmark | -[ Document navigation ] \ No newline at end of file diff --git a/index.html b/index.html index 70d4caa..def1792 100644 --- a/index.html +++ b/index.html @@ -17,603 +17,603 @@

Keybindings

DefaultKeybindings.dict for Mac OS X

+

View the Project on GitHub ttscoff/KeyBindings

+ +
-

DefaultKeyBindings.dict file (~/Library/KeyBindings/DefaultKeyBindings.dict) for Mac OS X, created by Brett Terpstra and based heavily on work done by Lri. Please note that these bindings won't work in all applications: TextWrangler and TextMate, for example, override these with their own settings. See Lri's gists and website for more coding madness.

-

Installation: Copy the DefaultKeyBindings.dict file to the ~/Library/KeyBindings/ directory (create KeyBindings if it doesn't already exist). +

Installation: Copy the DefaultKeyBindings.dict file to the ~/Library/KeyBindings/ directory (create KeyBindings if it doesn't already exist). Any open applications will need to be re-started before the key bindings will take effect -- or log out and log back in.

Documentation (last updated 04/23/2012.)

Grouped items begin with the groups shortcut (if exists), followed by a subgroup (if exists) followed by the keys specified.

- General Commands +
General Commands - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + -
General CommandsGeneral Commands
KeyFunctionKeyFunction
^yreplace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)^yreplace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)
^⇧uuppercase word^⇧uuppercase word
^⌥ulowercase word^⌥ulowercase word
^⇧ttitlecase word^⇧ttitlecase word
^⌥⇧uuppercase current paragraph^⌥⇧uuppercase current paragraph
^⌥ttitlecase paragraph^⌥ttitlecase paragraph
^wdelete word before cursor^wdelete word before cursor
⌥wselect word⌥wselect word
⌥⇧sselect entire line/paragraph⌥⇧sselect entire line/paragraph
⌥sselect from beginning of paragrah to last character⌥sselect from beginning of paragrah to last character
⌥ddelete line/paragraph⌥ddelete line/paragraph
⌥ycopy paragraph⌥ycopy paragraph
⌥xcut paragraph⌥xcut paragraph
⌥ppaste paragraph below⌥ppaste paragraph below
⌥⇧ppaste paragraph above⌥⇧ppaste paragraph above
^⇧aselect to beginning of paragraph and copy^⇧aselect to beginning of paragraph and copy
^⇧eselect to end of paragraph and copy^⇧eselect to end of paragraph and copy
⌥qcut to beginning of paragraph⌥qcut to beginning of paragraph
⌥kcut to end of paragraph⌥kcut to end of paragraph
⌥oblank line after current⌥oblank line after current
⌥⇧oblank line before current⌥⇧oblank line before current
^⌘kmove line up^⌘kmove line up
^⌘jmove line down^⌘jmove line down
^⌘lindent line^⌘lindent line
^⌘houtdent line (one tab or char)^⌘houtdent line (one tab or char)
^⌘↑move line up ( same commands but with arrow keys)^⌘↑move line up ( same commands but with arrow keys)
^⌘↓move line down^⌘↓move line down
^⌘→indent line^⌘→indent line
^⌘←outdent line (one tab or char)^⌘←outdent line (one tab or char)
^⇧⌘←Full outdent - Deletes all leading space of line/paragraph (updated) ( Control-shift-command-left arrow)^⇧⌘←Full outdent - Deletes all leading space of line/paragraph (updated) ( Control-shift-command-left arrow)
⌘⌥⇧↑modify selection up by paragraph (Command Option Shift Up)⌘⌥⇧↑modify selection up by paragraph (Command Option Shift Up)
⌘⌥⇧↓modify selection down by paragraph (Command Option Shift Down)⌘⌥⇧↓modify selection down by paragraph (Command Option Shift Down)
^⌥⇧←modify selection left by word^⌥⇧←modify selection left by word
^⌥⇧→modify selection right by word^⌥⇧→modify selection right by word
⌘⌥^←Move to first Alphanumeric character of line (new)⌘⌥^←Move to first Alphanumeric character of line (new)
⌘⌥←Move to first non-whitespace character of line (new)⌘⌥←Move to first non-whitespace character of line (new)
⌘⌥⇧←Select to first character of line with leading space (new)⌘⌥⇧←Select to first character of line with leading space (new)
⌥⌘→Move to last non-whitespace character of paragraph (new)⌥⌘→Move to last non-whitespace character of paragraph (new)
^⌥→Move to end of paragraph and delete trailing whitespace (new)^⌥→Move to end of paragraph and delete trailing whitespace (new)
⌘↩TextMate Command-Return (Command Enter)⌘↩TextMate Command-Return (Command Enter)
⌘⇧↩Insert blank line above paragraph (Command Shift Enter)⌘⇧↩Insert blank line above paragraph (Command Shift Enter)
⌥_hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on words)⌥_hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on words)
⌥1bookmark⌥1bookmark
⌥2jump to bookmark⌥2jump to bookmark
⌥⌘↩Continue a list item with indentation and include the same delimiter ( Command Option Enter)⌥⌘↩Continue a list item with indentation and include the same delimiter ( Command Option Enter)
⇧⇥remove one tab (or character) from start of line (outdent) ( Shift Tab)⇧⇥remove one tab (or character) from start of line (outdent) ( Shift Tab)
⌘⌥bbold selection (Markdown)⌘⌥bbold selection (Markdown)
⌘⌥iitalicize selection (Markdown)⌘⌥iitalicize selection (Markdown)
⌘⌥=increase markdown header level⌘⌥=increase markdown header level
⌘⌥-decrease markdown header level⌘⌥-decrease markdown header level
^⌥↩Add hard break for current line and insert newline below (new)^⌥↩Add hard break for current line and insert newline below (new)
^⌘↩Break line at cursor and add Markdown hard line break (new)^⌘↩Break line at cursor and add Markdown hard line break (new)
^<Make selected text into paired HTML tag. Allows attributes, only dupes first word into closing tag (caveat: overwrites your pasteboard)^<Make selected text into paired HTML tag. Allows attributes, only dupes first word into closing tag (caveat: overwrites your pasteboard)
⌥rrepeat character before cursor⌥rrepeat character before cursor
⌘⇧⌦Forward delete to end of paragraph⌘⇧⌦Forward delete to end of paragraph
⌘⇧⌫Delete to beginning of paragraph⌘⇧⌫Delete to beginning of paragraph
⌘⌥7Right mouse click (useless, doesn’t maintain cursor position)⌘⌥7Right mouse click (useless, doesn’t maintain cursor position)
Commenting commands +
Commenting commands - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + -
Commenting commands (^⌘c)Commenting commands (^⌘c)
^⌘c/comment with “//”^⌘c/comment with “//”
^⌘c\comment with “#”^⌘c\comment with “#”
^⌘c!HTML commenting^⌘c!HTML commenting
^⌘c*Css Commenting^⌘c*Css Commenting
Multi-stroke Markdown commands +
Multi-stroke Markdown commands - + - - - - + + + + - - - - + + + + - - - - + + + - - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - + - - + + - - - - + + + + - - - - + + + - + - - + + - - - - + + + - - - - + + + - + - - + + - - - - + + + + - - - - + + + + - + -
Multi-stroke Markdown commands (^⌘w)Multi-stroke Markdown commands (^⌘w)
^⌘wforce carriage return in text field^⌘wforce carriage return in text field
^⌘wforce tab in text field^⌘wforce tab in text field
^⌘w\insert reference link [selection][[cursor]] +^⌘w\insert reference link [selection][[cursor]]
^⌘w\insert reference [selection]: [cursor] +^⌘w\insert reference [selection]: [cursor]
^⌘w+Unordered list item with^⌘w+Unordered list item with
^⌘w-Unordered list item with -^⌘w-Unordered list item with -
^⌘w*Unordered list item with *^⌘w*Unordered list item with *
^⌘w8convert current numbered list item to bullet, handles indentation^⌘w8convert current numbered list item to bullet, handles indentation
^⌘w1convert current bullet list item to numbered^⌘w1convert current bullet list item to numbered
Headlines (removes leading whitespace after inserting hashmarks) (h)Headlines (removes leading whitespace after inserting hashmarks) (h)
^⌘wh1#^⌘wh1#
^⌘wh2##^⌘wh2##
^⌘wh3###^⌘wh3###
^⌘wh4####^⌘wh4####
^⌘wh5#####^⌘wh5#####
^⌘wh6######^⌘wh6######
Markdown link (l)Markdown link (l)
^⌘wltcreate a link for selected text, cursor between () [selected text]([cursor]) ( links without selected text first, these can produce a mess using multiple clipboards make a text selection before you run them)^⌘wltcreate a link for selected text, cursor between () [selected text]([cursor]) ( links without selected text first, these can produce a mess using multiple clipboards make a text selection before you run them)
^⌘wlccreate a link for selected text, inserting clipboard as url [[cursor]selected text](clipboard contents) +^⌘wlccreate a link for selected text, inserting clipboard as url [[cursor]selected text](clipboard contents)
Link as image (i)Link as image (i)
^⌘witsame as lt, but with image syntax ![selected text]([cursor]) +^⌘witsame as lt, but with image syntax ![selected text]([cursor])
^⌘wicsame as lc, but with image syntax ![selected text](clipboard) +^⌘wicsame as lc, but with image syntax ![selected text](clipboard)
Reference links (:)Reference links (:)
^⌘w:tcreate a reference from selected text^⌘w:tcreate a reference from selected text
^⌘w:ccreate a reference from selected text, clipboard as url^⌘w:ccreate a reference from selected text, clipboard as url
HTML commands +
HTML commands - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - + + - - - - + + + + - - - - + + + + - + - - + + - - - - + + + + - - - - + + + + - + -
HTML commands (^⌘e)HTML commands (^⌘e)
^⌘e==“[cursor]”^⌘e==“[cursor]”
^⌘eeentity &[cursor];^⌘eeentity &[cursor];
^⌘e/http://^⌘e/http://
^⌘etMake previous word into paired HTML tag^⌘etMake previous word into paired HTML tag
HTML Links (a)HTML Links (a)
^⌘eatInsert HTML link for selected text, leave cursor in the href with “http://” selected^⌘eatInsert HTML link for selected text, leave cursor in the href with “http://” selected
^⌘eacInsert HTML link with clipboard as href^⌘eacInsert HTML link with clipboard as href
HTML Image (i)HTML Image (i)
^⌘eitInsert image tag, any selected text is alt text, leave cursor in src attribute^⌘eitInsert image tag, any selected text is alt text, leave cursor in src attribute
^⌘eicInsert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute^⌘eicInsert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute
Surround commands +
Surround commands - + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + +
Surround commands (^⌘s)Surround commands (^⌘s)
^⌘s(wrap () with spaces^⌘s(wrap () with spaces
^⌘s)wrap () no spaces^⌘s)wrap () no spaces
^⌘s\wrap [] with spaces^⌘s\wrap [] with spaces
^⌘s\wrap [] no spaces^⌘s\wrap [] no spaces
^⌘s{wrap {} with spaces^⌘s{wrap {} with spaces
^⌘s}wrap {} no spaces^⌘s}wrap {} no spaces
^⌘s<wrap <> with spaces^⌘s<wrap <> with spaces
^⌘s>wrap <> no spaces^⌘s>wrap <> no spaces
^⌘swrap single quotes^⌘swrap single quotes
^⌘s`wrap backticks^⌘s`wrap backticks

This documentation is generated automatically from the comments and commands in the DefaultKeyBinding.dict file. The script document_keybindings.rb is free for use, but it's specifically designed for use with my formatting in the bindings plist (i.e. it's a little finicky).

- - - - - - - - + + - + \ No newline at end of file diff --git a/params.json b/params.json index 5f3f060..ca6c537 100644 --- a/params.json +++ b/params.json @@ -1 +1 @@ -{"name":"Keybindings","body":"DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys].\r\nPlease note that these bindings won't work in all applications: TextWrangler and TextMate, for example, override these with their own settings.\r\nSee Lri's [gists][lrigists] and [website][lriweb] for more coding madness.\r\n\r\n[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/\r\n[lriweb]: http://www.cs.helsinki.fi/u/lranta/\r\n[lrigists]: https://gist.github.com/Lri\r\n[brett terpstra]: http://brettterpstra.com\r\n\r\nInstallation: Copy the DefaultKeyBindings.dict file to the `~/Library/KeyBindings/` directory (create `KeyBindings` if it doesn't already exist). \r\nAny open applications will need to be re-started before the key bindings will take effect -- or log out and log back in.\r\n\r\nDocumentation (last updated 04/23/2012.)\r\n\r\n*Grouped items begin with the groups shortcut (if exists), followed by a subgroup (if exists) followed by the keys specified.*\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n
General Commands
General Commands
KeyFunction
^yreplace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)
^⇧uuppercase word
^⌥ulowercase word
^⇧ttitlecase word
^⌥⇧uuppercase current paragraph
^⌥ttitlecase paragraph
^wdelete word before cursor
⌥wselect word
⌥⇧sselect entire line/paragraph
⌥sselect from beginning of paragrah to last character
⌥ddelete line/paragraph
⌥ycopy paragraph
⌥xcut paragraph
⌥ppaste paragraph below
⌥⇧ppaste paragraph above
^⇧aselect to beginning of paragraph and copy
^⇧eselect to end of paragraph and copy
⌥qcut to beginning of paragraph
⌥kcut to end of paragraph
⌥oblank line after current
⌥⇧oblank line before current
^⌘kmove line up
^⌘jmove line down
^⌘lindent line
^⌘houtdent line (one tab or char)
^⌘↑move line up ( same commands but with arrow keys)
^⌘↓move line down
^⌘→indent line
^⌘←outdent line (one tab or char)
^⇧⌘←Full outdent - Deletes all leading space of line/paragraph (updated) ( Control-shift-command-left arrow)
⌘⌥⇧↑modify selection up by paragraph (Command Option Shift Up)
⌘⌥⇧↓modify selection down by paragraph (Command Option Shift Down)
^⌥⇧←modify selection left by word
^⌥⇧→modify selection right by word
⌘⌥^←Move to first Alphanumeric character of line (new)
⌘⌥←Move to first non-whitespace character of line (new)
⌘⌥⇧←Select to first character of line with leading space (new)
⌥⌘→Move to last non-whitespace character of paragraph (new)
^⌥→Move to end of paragraph and delete trailing whitespace (new)
⌘↩TextMate Command-Return (Command Enter)
⌘⇧↩Insert blank line above paragraph (Command Shift Enter)
⌥_hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on words)
⌥1bookmark
⌥2jump to bookmark
⌥⌘↩Continue a list item with indentation and include the same delimiter ( Command Option Enter)
⇧⇥remove one tab (or character) from start of line (outdent) ( Shift Tab)
⌘⌥bbold selection (Markdown)
⌘⌥iitalicize selection (Markdown)
⌘⌥=increase markdown header level
⌘⌥-decrease markdown header level
^⌥↩Add hard break for current line and insert newline below (new)
^⌘↩Break line at cursor and add Markdown hard line break (new)
^<Make selected text into paired HTML tag. Allows attributes, only dupes first word into closing tag (caveat: overwrites your pasteboard)
⌥rrepeat character before cursor
⌘⇧⌦Forward delete to end of paragraph
⌘⇧⌫Delete to beginning of paragraph
⌘⌥7Right mouse click (useless, doesn’t maintain cursor position)
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n
Commenting commands
Commenting commands (^⌘c)
^⌘c/comment with “//”
^⌘c\\comment with “#”
^⌘c!HTML commenting
^⌘c*Css Commenting
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n
Multi-stroke Markdown commands
Multi-stroke Markdown commands (^⌘w)
^⌘wforce carriage return in text field
^⌘wforce tab in text field
^⌘w\\\u0001insert reference link [selection][[cursor]]
^⌘w\\\u0001insert reference [selection]: [cursor]
^⌘w+Unordered list item with
^⌘w-Unordered list item with -
^⌘w*Unordered list item with *
^⌘w8convert current numbered list item to bullet, handles indentation
^⌘w1convert current bullet list item to numbered
Headlines (removes leading whitespace after inserting hashmarks) (h)
^⌘wh1#
^⌘wh2##
^⌘wh3###
^⌘wh4####
^⌘wh5#####
^⌘wh6######
Markdown link (l)
^⌘wltcreate a link for selected text, cursor between () [selected text]([cursor]) ( links without selected text first, these can produce a mess using multiple clipboards make a text selection before you run them)
^⌘wlccreate a link for selected text, inserting clipboard as url [[cursor]selected text](clipboard contents)
Link as image (i)
^⌘witsame as lt, but with image syntax ![selected text]([cursor])
^⌘wicsame as lc, but with image syntax ![selected text](clipboard)
Reference links (:)
^⌘w:tcreate a reference from selected text
^⌘w:ccreate a reference from selected text, clipboard as url
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n
HTML commands
HTML commands (^⌘e)
^⌘e==“[cursor]”
^⌘eeentity &[cursor];
^⌘e/http://
^⌘etMake previous word into paired HTML tag
HTML Links (a)
^⌘eatInsert HTML link for selected text, leave cursor in the href with “http://” selected
^⌘eacInsert HTML link with clipboard as href
HTML Image (i)
^⌘eitInsert image tag, any selected text is alt text, leave cursor in src attribute
^⌘eicInsert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n
Surround commands
Surround commands (^⌘s)
^⌘s(wrap () with spaces
^⌘s)wrap () no spaces
^⌘s\\\u0001wrap [] with spaces
^⌘s\\\u0001wrap [] no spaces
^⌘s{wrap {} with spaces
^⌘s}wrap {} no spaces
^⌘s<wrap <> with spaces
^⌘s>wrap <> no spaces
^⌘swrap single quotes
^⌘s`wrap backticks
\r\n\r\n\r\nThis documentation is generated automatically from the comments and commands in the DefaultKeyBinding.dict file. The script `document_keybindings.rb` is free for use, but it's specifically designed for use with my formatting in the bindings plist (i.e. it's a little finicky).\r\n\r\n","tagline":"DefaultKeybindings.dict for Mac OS X","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file +{"name":"Keybindings","body":"DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys].\r\nPlease note that these bindings won't work in all applications: TextWrangler and TextMate, for example, override these with their own settings.\r\nSee Lri's [gists][lrigists] and [website][lriweb] for more coding madness.\r\n\r\n[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/\r\n[lriweb]: http://www.cs.helsinki.fi/u/lranta/\r\n[lrigists]: https://gist.github.com/Lri\r\n[brett terpstra]: http://brettterpstra.com\r\n\r\nInstallation: Copy the DefaultKeyBindings.dict file to the `~/Library/KeyBindings/` directory (create `KeyBindings` if it doesn't already exist). \r\nAny open applications will need to be re-started before the key bindings will take effect -- or log out and log back in.\r\n\r\nDocumentation (last updated 04/23/2012.)\r\n\r\n*Grouped items begin with the groups shortcut (if exists), followed by a subgroup (if exists) followed by the keys specified.*\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n
General Commands
General Commands
KeyFunction
^yreplace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)
^⇧uuppercase word
^⌥ulowercase word
^⇧ttitlecase word
^⌥⇧uuppercase current paragraph
^⌥ttitlecase paragraph
^wdelete word before cursor
⌥wselect word
⌥⇧sselect entire line/paragraph
⌥sselect from beginning of paragrah to last character
⌥ddelete line/paragraph
⌥ycopy paragraph
⌥xcut paragraph
⌥ppaste paragraph below
⌥⇧ppaste paragraph above
^⇧aselect to beginning of paragraph and copy
^⇧eselect to end of paragraph and copy
⌥qcut to beginning of paragraph
⌥kcut to end of paragraph
⌥oblank line after current
⌥⇧oblank line before current
^⌘kmove line up
^⌘jmove line down
^⌘lindent line
^⌘houtdent line (one tab or char)
^⌘↑move line up ( same commands but with arrow keys)
^⌘↓move line down
^⌘→indent line
^⌘←outdent line (one tab or char)
^⇧⌘←Full outdent - Deletes all leading space of line/paragraph (updated) ( Control-shift-command-left arrow)
⌘⌥⇧↑modify selection up by paragraph (Command Option Shift Up)
⌘⌥⇧↓modify selection down by paragraph (Command Option Shift Down)
^⌥⇧←modify selection left by word
^⌥⇧→modify selection right by word
⌘⌥^←Move to first Alphanumeric character of line (new)
⌘⌥←Move to first non-whitespace character of line (new)
⌘⌥⇧←Select to first character of line with leading space (new)
⌥⌘→Move to last non-whitespace character of paragraph (new)
^⌥→Move to end of paragraph and delete trailing whitespace (new)
⌘↩TextMate Command-Return (Command Enter)
⌘⇧↩Insert blank line above paragraph (Command Shift Enter)
⌥_hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on words)
⌥1bookmark
⌥2jump to bookmark
⌥⌘↩Continue a list item with indentation and include the same delimiter ( Command Option Enter)
⇧⇥remove one tab (or character) from start of line (outdent) ( Shift Tab)
⌘⌥bbold selection (Markdown)
⌘⌥iitalicize selection (Markdown)
⌘⌥=increase markdown header level
⌘⌥-decrease markdown header level
^⌥↩Add hard break for current line and insert newline below (new)
^⌘↩Break line at cursor and add Markdown hard line break (new)
^<Make selected text into paired HTML tag. Allows attributes, only dupes first word into closing tag (caveat: overwrites your pasteboard)
⌥rrepeat character before cursor
⌘⇧⌦Forward delete to end of paragraph
⌘⇧⌫Delete to beginning of paragraph
⌘⌥7Right mouse click (useless, doesn’t maintain cursor position)
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n
Commenting commands
Commenting commands (^⌘c)
^⌘c/comment with “//”
^⌘c\\comment with “#”
^⌘c!HTML commenting
^⌘c*Css Commenting
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n
Multi-stroke Markdown commands
Multi-stroke Markdown commands (^⌘w)
^⌘wforce carriage return in text field
^⌘wforce tab in text field
^⌘w\\\u0001insert reference link [selection][[cursor]]
^⌘w\\\u0001insert reference [selection]: [cursor]
^⌘w+Unordered list item with
^⌘w-Unordered list item with -
^⌘w*Unordered list item with *
^⌘w8convert current numbered list item to bullet, handles indentation
^⌘w1convert current bullet list item to numbered
Headlines (removes leading whitespace after inserting hashmarks) (h)
^⌘wh1#
^⌘wh2##
^⌘wh3###
^⌘wh4####
^⌘wh5#####
^⌘wh6######
Markdown link (l)
^⌘wltcreate a link for selected text, cursor between () [selected text]([cursor]) ( links without selected text first, these can produce a mess using multiple clipboards make a text selection before you run them)
^⌘wlccreate a link for selected text, inserting clipboard as url [[cursor]selected text](clipboard contents)
Link as image (i)
^⌘witsame as lt, but with image syntax ![selected text]([cursor])
^⌘wicsame as lc, but with image syntax ![selected text](clipboard)
Reference links (:)
^⌘w:tcreate a reference from selected text
^⌘w:ccreate a reference from selected text, clipboard as url
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\r\n\r\n
HTML commands
HTML commands (^⌘e)
^⌘e==“[cursor]”
^⌘eeentity &[cursor];
^⌘e/http://
^⌘etMake previous word into paired HTML tag
HTML Links (a)
^⌘eatInsert HTML link for selected text, leave cursor in the href with “http://” selected
^⌘eacInsert HTML link with clipboard as href
HTML Image (i)
^⌘eitInsert image tag, any selected text is alt text, leave cursor in src attribute
^⌘eicInsert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\r\n\r\n\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\r\n
Surround commands
Surround commands (^⌘s)
^⌘s(wrap () with spaces
^⌘s)wrap () no spaces
^⌘s\\\u0001wrap [] with spaces
^⌘s\\\u0001wrap [] no spaces
^⌘s{wrap {} with spaces
^⌘s}wrap {} no spaces
^⌘s<wrap <> with spaces
^⌘s>wrap <> no spaces
^⌘swrap single quotes
^⌘s`wrap backticks
\r\n\r\n\r\nThis documentation is generated automatically from the comments and commands in the DefaultKeyBinding.dict file. The script `document_keybindings.rb` is free for use, but it's specifically designed for use with my formatting in the bindings plist (i.e. it's a little finicky).\r\n\r\n","tagline":"DefaultKeybindings.dict for Mac OS X","note":"Don't delete this file! It's used internally to help with page regeneration.","google":"UA-34296025-1"} \ No newline at end of file diff --git a/readme.md b/readme.md deleted file mode 100644 index 2db8567..0000000 --- a/readme.md +++ /dev/null @@ -1,467 +0,0 @@ -DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) for Mac OS X, created by [Brett Terpstra][] and based heavily on work done by [Lri][lrikeys]. See Lri's [gists][lrigists] and [website][lriweb] for more coding madness. - -[lrikeys]: http://www.cs.helsinki.fi/u/lranta/keybindings/ -[lriweb]: http://www.cs.helsinki.fi/u/lranta/ -[lrigists]: https://gist.github.com/Lri -[brett terpstra]: http://brettterpstra.com - -*Grouped items begin with the groups shortcut, followed by the Keys specified. Items separated by commas are sequential, not concurrent.* - -

DefaultKeyBindings.dict file for Mac OS X, created by Brett Terpstra and based heavily on work done by Lri. See Lri’s gists and website for more coding madness.

- -

Grouped items begin with the groups shortcut, followed by the Keys specified. Items separated by commas are sequential, not concurrent.

- - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All purpose key combos
GroupKeysFunction
⌥zcopy character before cursor
⌥rrepeat character before cursor
⌥ttranspose characters
⌥+uppercase word
⌥-lowercase word
⌥.capitalize word
^wdelete word before cursor
⌥wselect word
⌥fcut word (fold)
⌥gcopy word (grab)
⌥hpaste word (hit)
⌥lselect entire line/paragraph
⌥sselect from beginning of paragrah to last character
⌥ddelete line/paragraph
⌥ycopy paragraph
⌥xcut paragraph
⌥ppaste paragraph below
⌥⇧Ppaste paragraph above
^⇧Aselect to beginning of paragraph and copy
^⇧Eselect to end of paragraph and copy
⌥qcut to beginning of paragraph
⌥kcut to end of paragraph
⌥,move paragraph up a line, inserting blank space after
⌥␠move paragraph to end of document
⌥oblank line after current
⌥⇧Oblank line before current
⌘⌥/comment with “//”
⌘⌥3comment with “#”
- - - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Markdown-specific shortcuts (^⌘W)
GroupKeysFunction
⌘⌥bbold selection
⌘⌥iitalicize selection
^⌘w⏎force Return
^⌘wforce Tab
^⌘w1–4# Headlines
^⌘wl,tlink text "[selected text]( | )"
^⌘wl,cclipboard link "[ | selected text](clipboard contents)"
^⌘wi,timage, selection as alt "![selected text]( | )"
^⌘wi,cclipboard image "![ | selected text](clipboard contents)"
^⌘w:,tcreate a reference from selected text
^⌘w:,ccreate a reference from selected text, clipboard as url
^⌘w[insert reference link
^⌘w+|-|*lists
^⌘w=,⌥⇧Lnew list item after current
^⌘weentity
^⌘w=,/http://
- - - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Surround (^⌘s)
GroupKeysFunction
^⌘s(wrap () with spaces
^⌘s)wrap () no spaces
^⌘s[wrap [] with spaces
^⌘s]wrap [] no spaces
^⌘s{wrap {} with spaces
^⌘s}wrap {} no spaces
^⌘s<wrap <> with spaces
^⌘s>wrap <> no spaces
^⌘swrap single quotes
^⌘s`wrap backticks
^⌘s"wrap double quote
- - - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
List/Paragraph motion
GroupKeysFunction
^⌘kmove line up
^⌘jmove line down
^⌘lindent line
^⌘houtdent line (all the way)
^⌥kcopy line and paste above
^⌥jcopy line and paste below
⌘⌥ꜛmodify selection up
⌘⌥ꜜmodify selection down
⌘␡Forward delete to end of paragraph
- - - - ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Document navigation
GroupKeysFunction
PgUpPage Up
PgDownPage Down
⌥PgUpScroll up
⌥PgDownScroll Down
⌥1bookmark
⌥2jump to bookmark
- diff --git a/repo.min.js b/repo.min.js deleted file mode 100755 index 699852c..0000000 --- a/repo.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/*! - * @mekwall's .vangogh() for Syntax Highlighting - * - * All code is open source and dual licensed under GPL and MIT. - * Check the individual licenses for more information. - * https://github.com/mekwall/jquery-vangogh/blob/master/GPL-LICENSE.txt - * https://github.com/mekwall/jquery-vangogh/blob/master/MIT-LICENSE.txt - */ -(function($,a,b){var c=1,d=!1,e=!1,f={get:function(b){var c=a.location.hash;if(c.length>0){var d=c.match(new RegExp(b+":{([a-zA-Z0-9,-]*)}"));if(d)return d[1].split(",")}return[]},set:function(b,c){var d=a.location.hash,e,f=b+":{"+c.join(",")+"}",g=d.indexOf(b+":{");if(c.length===0)return this.remove(b);g!==-1?e=d.replace(new RegExp("("+b+":{[a-zA-Z0-9,-]*})"),f):e=d.length>0?d+","+f:f,a.location.hash=e},remove:function(b){a.location.hash=a.location.hash.replace(new RegExp("([,]?"+b+":{[a-zA-Z0-9,-]*}[,]?)"),"")}},g={numberRange:/^([0-9]+)-([0-9]+)$/,pageNumber:/-([0-9]+)$/,multilineBegin:/(?:.[^<]*(?!<\/span>)|)$/ig,multilineEnd:/()?(?:.[^<]*)?(<\/span>)/ig};$.fn.vanGogh=function(h){function n(){if(d||e)setTimeout(n,100);else{k++;if(k>=10)return;if(h.source&&!l){e=!0,$.ajax({url:h.source,crossDomain:!0,dataType:"text",success:function(a){l=a},error:function(a,b){l="ERROR: "+b},complete:function(){e=!1,n()}});return}b=b||a.hljs;if(!b){d=!0,$.getScript(h.autoload,function(){d=!1,n()});return}j.filter("pre,code").each(function(){function r(b,c,e){var h=!1,i=a.find(".vg-line");c&&(a.find(".vg-highlight").removeClass("vg-highlight"),f.remove(d),k=[]),b=$.type(b)==="array"?b:[b],$.each(b,function(b,c){if(k.indexOf(c)<=-1){!isNaN(parseFloat(c,10))&&isFinite(c)&&(c=parseInt(c,10));if($.type(c)==="string"){var e=g.numberRange.exec(c);if(e){var f=e[1],h=e[2],j="";for(var b=f;b<=h;b++)j+=",#"+d+"-"+b,k.push(b);i.filter(j.substring(1)).addClass("vg-highlight")}else a.find(".vg-line:contains("+c+")").each(function(){var a=$(this).addClass("vg-highlight");a.html(a.html().replace(c,''+c+""))}),k.push(c)}else{var l=d+"-"+this,m=i.filter("#"+l);m.length&&(m.addClass("vg-highlight"),k.push(c))}}}),!e&&f.set(d,k)}var a=$(this).addClass("vg-container").attr("id",this.id||"vg-"+c++),d=this.id,e=a.find("code"),i=!1,j=!1,k=[];e.length||(e=a,i=!0),h.source&&l&&e.text(l);var n=e.text();b.highlightBlock(e[0],h.tab);var o=e.html().split("\n"),p="",q="";if(!i){var s={},t=0;$.each(o,function(a,b){var c=a+h.firstLine,e=d+"-"+c,f=b;h.numbers&&(p+=''+c+"");if(s[t]){var i=g.multilineEnd.exec(b);i&&!i[1]?(f=''+f,delete s[t],t--):f=''+f+""}var j=g.multilineBegin.exec(b);j&&(t++,s[t]=j[1]),q+='
'+f+"
"}),q=''+q+"",h.numbers&&(q='
'+p+"
"+q),a.html(q),e=a.find("code"),a.find(".vg-number").click(function(b){var c=$(this),e=c.attr("rel"),h=a.find(e);if(h.hasClass("vg-highlight")){h.removeClass("vg-highlight"),k.splice(k.indexOf(c.text()),1),f.set(d,k),j=!1;return!1}var i=j;j=parseInt(g.pageNumber.exec(e)[1],10),b.shiftKey&&j?r(iv){if(this.scrollLeft0){var y=a.find(".vg-line").height(),z=parseInt(e.css("paddingTop")),A=y*(h.maxLines+1)+z;a.css({minHeight:y+z,maxHeight:A})}h.highlight&&r(h.highlight,!0,!0);var B=f.get(d);B.length&&r(B,!1,!0)})}}function m(b){var c=a,d=a.document;if(d.body.createTextRange){var e=d.body.createTextRange();e.moveToElementText(b),e.select()}else if(d.createRange){var f=c.getSelection(),e=d.createRange();e.selectNodeContents(b),f.removeAllRanges(),f.addRange(e)}}var i={language:"auto",firstLine:1,maxLines:0,numbers:!0,highlight:null,animateGutter:!0,autoload:"http://softwaremaniacs.org/media/soft/highlight/highlight.pack.js",tab:" "};h=$.extend({},i,h);var j=this,k=0,l;n();return j}})(jQuery,this,typeof this.hljs!="undefined"?this.hljs:!1); - -/*! - * Repo.js - * @author Darcy Clarke - * - * Copyright (c) 2012 Darcy Clarke - * Dual licensed under the MIT and GPL licenses. - * http://darcyclarke.me/ - */ - (function(a){a.fn.repo=function(c){var g=this,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=function(t){t=escape(t);var s="";var r,q,p="";var o,n,m,l="";var k=0;do{r=t.charCodeAt(k++);q=t.charCodeAt(k++);p=t.charCodeAt(k++);o=r>>2;n=(r&3)<<4|q>>4;m=(q&15)<<2|p>>6;l=p&63;if(isNaN(q)){m=l=64}else{if(isNaN(p)){l=64}}s=s+e.charAt(o)+e.charAt(n)+e.charAt(m)+e.charAt(l);r=q=p="";o=n=m=l=""}while(k>4;s=(p&15)<<4|o>>2;r=(o&3)<<6|n;u=u+String.fromCharCode(t);if(o!=64){u=u+String.fromCharCode(s)}if(n!=64){u=u+String.fromCharCode(r)}t=s=r="";q=p=o=n=""}while(m').html(g.settings.css))}a.ajax({url:"https://api.github.com/repos/"+g.settings.user+"/"+g.settings.name+"/git/trees/"+g.settings.branch+"?recursive=1",type:"GET",data:{},dataType:"jsonp",success:function(h){a.each(h.data.tree,function(j){if(!--h.data.tree.length){g.container.addClass("loaded");f(g.container.find(".page").first(),"left",true)}if(this.type!="blob"){return}var k=g.container.find(".page").first();ctx=g.repo,output=k,path=this.path,arr=path.split("/"),file=arr[(arr.length-1)],id="";arr=arr.slice(0,-1);id=g.namespace;a.each(arr,function(n){var m=String(this),l=0,o=false;id=id+"_split_"+m.replace(".","_dot_");a.each(ctx.folders,function(p){if(this.name==m){l=p;o=true}});if(!o){if(output!==k){output.find("ul li.back").after(a('
  • '+m+"
  • "))}else{output.find("ul li").first().after(a('
  • '+m+"
  • "))}ctx.folders.push({name:m,folders:[],files:[],element:a('
    ').appendTo(g.container)[0]});l=ctx.folders.length-1}output=a(ctx.folders[l].element);ctx=ctx.folders[l]});output.find("ul").append(a('
  • '+file+"
  • "));ctx.files.push(file)});g.container.on("click","a",function(n){n.preventDefault();var l=a(this),k=l.parents("li"),m=l.parents(".page"),i=l.parents(".repo"),j=a("#"+l.data("id"));if(k.hasClass("file")){j=a("#"+l.data("id"));if(j.legnth>0){j.addClass("active")}else{a.ajax({url:"https://api.github.com/repos/"+g.settings.user+"/"+g.settings.name+"/contents/"+l.data("path"),type:"GET",data:{},dataType:"jsonp",success:function(o){j=a('
    ').appendTo(i);var p=j.text().split(".").pop();if(typeof g.extensions[p]!="undefined"){file.find("code").addClass(g.extensions[p])}j.find("code").html(String(b(o.data.content)).replace(/&/g,"&").replace(//g,">").replace(/"/g,"""));j.find("pre").vanGogh();f(j,"left")},error:function(o){if(console&&console.log){console.log("Request Error:",n)}}})}}else{if(k.hasClass("dir")){g.container.find("h1").find(".active").removeClass("active").end().append(''+l.text()+"");f(j,"left")}else{if(k.hasClass("back")){g.container.find("h1 a").last().remove();j=m[0].id.split("_split_").slice(0,-1).join("_split_");j=(j==g.namespace)?g.container.find(".page").first():a("#"+j);f(j,"right")}else{if(l[0]!==g.container.find("h1 a")[0]){l.addClass("active")}g.container.find("h1 a").slice((l.index()+1),g.container.find("h1 a").length).remove();f(j,"right")}}}})},error:function(h){if(console&&console.log){console.log("Request Error:",h)}}});return this.each(function(){g.container=a('').appendTo(a(this))})}})(jQuery); \ No newline at end of file -- cgit v1.2.3