{"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\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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"}