diff options
| author | Brett Terpstra | 2012-05-05 04:07:03 -0700 |
|---|---|---|
| committer | Brett Terpstra | 2012-05-05 04:07:03 -0700 |
| commit | ef08d78102e17511400ffa57ffb0805e8f405f71 (patch) | |
| tree | e547b8c363634c7e01002641e5d16a4daee29a03 /index.html | |
| download | KeyBindings-ef08d78102e17511400ffa57ffb0805e8f405f71.tar.bz2 | |
Created gh-pages branch via GitHub
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 606 |
1 files changed, 606 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..775580e --- /dev/null +++ b/index.html @@ -0,0 +1,606 @@ +<!doctype html> +<html> + <head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="chrome=1"> + <title>Keybindings by ttscoff</title> + + <link rel="stylesheet" href="stylesheets/styles.css"> + <link rel="stylesheet" href="stylesheets/pygment_trac.css"> + <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> + <!--[if lt IE 9]> + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + </head> + <body> + <div class="wrapper"> + <header> + <h1>Keybindings</h1> + <p>DefaultKeybindings.dict for Mac OS X</p> + <p class="view"><a href="https://github.com/ttscoff/KeyBindings">View the Project on GitHub <small>ttscoff/KeyBindings</small></a></p> + <ul> + <li><a href="https://github.com/ttscoff/KeyBindings/zipball/master">Download <strong>ZIP File</strong></a></li> + <li><a href="https://github.com/ttscoff/KeyBindings/tarball/master">Download <strong>TAR Ball</strong></a></li> + <li><a href="https://github.com/ttscoff/KeyBindings">View On <strong>GitHub</strong></a></li> + </ul> + </header> + <section> + <p>DefaultKeyBindings.dict file (<code>~/Library/KeyBindings/DefaultKeyBindings.dict</code>) for Mac OS X, created by <a href="http://brettterpstra.com">Brett Terpstra</a> and based heavily on work done by <a href="http://www.cs.helsinki.fi/u/lranta/keybindings/">Lri</a>. +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 <a href="https://gist.github.com/Lri">gists</a> and <a href="http://www.cs.helsinki.fi/u/lranta/">website</a> for more coding madness.</p> + +<p><b>Installation</b>: Copy the DefaultKeyBindings.dict file to the <code>~/Library/KeyBindings/</code> directory (create <code>KeyBindings</code> 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.</p> + +<p><b>Documentation</b> <i>(last updated 04/23/2012.)</i></p> + +<p><em>Grouped items begin with the groups shortcut (if exists), followed by a subgroup (if exists) followed by the keys specified.</em></p> + +<table> General Commands +<tr> +<th colspan="2">General Commands</th> +</tr> +<tr> +<th>Key</th> + <th>Function</th> +</tr> +<tr> +<td>^y</td> + <td>replace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)</td> +</tr> +<tr> +<td>^⇧u</td> + <td>uppercase word</td> +</tr> +<tr> +<td>^⌥u</td> + <td>lowercase word</td> +</tr> +<tr> +<td>^⇧t</td> + <td>titlecase word</td> +</tr> +<tr> +<td>^⌥⇧u</td> + <td>uppercase current paragraph</td> +</tr> +<tr> +<td>^⌥t</td> + <td>titlecase paragraph</td> +</tr> +<tr> +<td>^w</td> + <td>delete word before cursor</td> +</tr> +<tr> +<td>⌥w</td> + <td>select word</td> +</tr> +<tr> +<td>⌥⇧s</td> + <td>select entire line/paragraph</td> +</tr> +<tr> +<td>⌥s</td> + <td>select from beginning of paragrah to last character</td> +</tr> +<tr> +<td>⌥d</td> + <td>delete line/paragraph</td> +</tr> +<tr> +<td>⌥y</td> + <td>copy paragraph</td> +</tr> +<tr> +<td>⌥x</td> + <td>cut paragraph</td> +</tr> +<tr> +<td>⌥p</td> + <td>paste paragraph below</td> +</tr> +<tr> +<td>⌥⇧p</td> + <td>paste paragraph above</td> +</tr> +<tr> +<td>^⇧a</td> + <td>select to beginning of paragraph and copy</td> +</tr> +<tr> +<td>^⇧e</td> + <td>select to end of paragraph and copy</td> +</tr> +<tr> +<td>⌥q</td> + <td>cut to beginning of paragraph</td> +</tr> +<tr> +<td>⌥k</td> + <td>cut to end of paragraph</td> +</tr> +<tr> +<td>⌥o</td> + <td>blank line after current</td> +</tr> +<tr> +<td>⌥⇧o</td> + <td>blank line before current</td> +</tr> +<tr> +<td>^⌘k</td> + <td>move line up</td> +</tr> +<tr> +<td>^⌘j</td> + <td>move line down</td> +</tr> +<tr> +<td>^⌘l</td> + <td>indent line</td> +</tr> +<tr> +<td>^⌘h</td> + <td>outdent line (one tab or char)</td> +</tr> +<tr> +<td>^⌘↑</td> + <td>move line up ( same commands but with arrow keys)</td> +</tr> +<tr> +<td>^⌘↓</td> + <td>move line down</td> +</tr> +<tr> +<td>^⌘→</td> + <td>indent line</td> +</tr> +<tr> +<td>^⌘←</td> + <td>outdent line (one tab or char)</td> +</tr> +<tr> +<td>^⇧⌘←</td> + <td>Full outdent - Deletes all leading space of line/paragraph (updated) ( Control-shift-command-left arrow)</td> +</tr> +<tr> +<td>⌘⌥⇧↑</td> + <td>modify selection up by paragraph (Command Option Shift Up)</td> +</tr> +<tr> +<td>⌘⌥⇧↓</td> + <td>modify selection down by paragraph (Command Option Shift Down)</td> +</tr> +<tr> +<td>^⌥⇧←</td> + <td>modify selection left by word</td> +</tr> +<tr> +<td>^⌥⇧→</td> + <td>modify selection right by word</td> +</tr> +<tr> +<td>⌘⌥^←</td> + <td>Move to first Alphanumeric character of line (new)</td> +</tr> +<tr> +<td>⌘⌥←</td> + <td>Move to first non-whitespace character of line (new)</td> +</tr> +<tr> +<td>⌘⌥⇧←</td> + <td>Select to first character of line with leading space (new)</td> +</tr> +<tr> +<td>⌥⌘→</td> + <td>Move to last non-whitespace character of paragraph (new)</td> +</tr> +<tr> +<td>^⌥→</td> + <td>Move to end of paragraph and delete trailing whitespace (new)</td> +</tr> +<tr> +<td>⌘↩</td> + <td>TextMate Command-Return (Command Enter)</td> +</tr> +<tr> +<td>⌘⇧↩</td> + <td>Insert blank line above paragraph (Command Shift Enter)</td> +</tr> +<tr> +<td>⌥_</td> + <td>hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on <em>words</em>)</td> +</tr> +<tr> +<td>⌥1</td> + <td>bookmark</td> +</tr> +<tr> +<td>⌥2</td> + <td>jump to bookmark</td> +</tr> +<tr> +<td>⌥⌘↩</td> + <td>Continue a list item with indentation and include the same delimiter ( Command Option Enter)</td> +</tr> +<tr> +<td>⇧⇥</td> + <td>remove one tab (or character) from start of line (outdent) ( Shift Tab)</td> +</tr> +<tr> +<td>⌘⌥b</td> + <td>bold selection (Markdown)</td> +</tr> +<tr> +<td>⌘⌥i</td> + <td>italicize selection (Markdown)</td> +</tr> +<tr> +<td>⌘⌥=</td> + <td>increase markdown header level</td> +</tr> +<tr> +<td>⌘⌥-</td> + <td>decrease markdown header level</td> +</tr> +<tr> +<td>^⌥↩</td> + <td>Add hard break for current line and insert newline below (new)</td> +</tr> +<tr> +<td>^⌘↩</td> + <td>Break line at cursor and add Markdown hard line break (new)</td> +</tr> +<tr> +<td>^<</td> + <td>Make selected text into paired HTML tag. Allows attributes, only dupes first word into closing tag (caveat: overwrites your pasteboard)</td> +</tr> +<tr> +<td>⌥r</td> + <td>repeat character before cursor</td> +</tr> +<tr> +<td>⌘⇧⌦</td> + <td>Forward delete to end of paragraph</td> +</tr> +<tr> +<td>⌘⇧⌫</td> + <td>Delete to beginning of paragraph</td> +</tr> +<tr> +<td>⌘⌥7</td> + <td>Right mouse click (useless, doesn’t maintain cursor position)</td> +</tr> +</table><table> Commenting commands +<tr> +<th colspan="4">Commenting commands (^⌘c)</th> +</tr> +<tr> +<td>^⌘c</td> + <td></td> + <td>/</td> + <td>comment with “//”</td> +</tr> +<tr> +<td>^⌘c</td> + <td></td> + <td>\</td> + <td>comment with “#”</td> +</tr> +<tr> +<td>^⌘c</td> + <td></td> + <td>!</td> + <td>HTML commenting</td> +</tr> +<tr> +<td>^⌘c</td> + <td></td> + <td>*</td> + <td>Css Commenting</td> +</tr> +</table><table> Multi-stroke Markdown commands +<tr> +<th colspan="4">Multi-stroke Markdown commands (^⌘w)</th> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>␍</td> + <td>force carriage return in text field</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>⇥</td> + <td>force tab in text field</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>\</td> + <td>insert reference link <code>[selection][[cursor]]</code> +</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>\</td> + <td>insert reference <code>[selection]: [cursor]</code> +</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>+</td> + <td>Unordered list item with</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>-</td> + <td>Unordered list item with -</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>*</td> + <td>Unordered list item with *</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>8</td> + <td>convert current numbered list item to bullet, handles indentation</td> +</tr> +<tr> +<td>^⌘w</td> + <td></td> + <td>1</td> + <td>convert current bullet list item to numbered</td> +</tr> +<tr> +<td colspan="3">Headlines (removes leading whitespace after inserting hashmarks) (h)</td> + <td></td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>1</td> + <td>#</td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>2</td> + <td>##</td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>3</td> + <td>###</td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>4</td> + <td>####</td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>5</td> + <td>#####</td> +</tr> +<tr> +<td>^⌘w</td> + <td>h</td> + <td>6</td> + <td>######</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +<tr> +<td colspan="3">Markdown link (l)</td> + <td></td> +</tr> +<tr> +<td>^⌘w</td> + <td>l</td> + <td>t</td> + <td>create a link for selected text, cursor between () <code>[selected text]([cursor])</code> ( links without selected text first, these can produce a mess using multiple clipboards make a text selection before you run them)</td> +</tr> +<tr> +<td>^⌘w</td> + <td>l</td> + <td>c</td> + <td>create a link for selected text, inserting clipboard as url <code>[[cursor]selected text](clipboard contents)</code> +</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +<tr> +<td colspan="3">Link as image (i)</td> + <td></td> +</tr> +<tr> +<td>^⌘w</td> + <td>i</td> + <td>t</td> + <td>same as lt, but with image syntax <code></code> +</td> +</tr> +<tr> +<td>^⌘w</td> + <td>i</td> + <td>c</td> + <td>same as lc, but with image syntax <code></code> +</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +<tr> +<td colspan="3">Reference links (:)</td> + <td></td> +</tr> +<tr> +<td>^⌘w</td> + <td>:</td> + <td>t</td> + <td>create a reference from selected text</td> +</tr> +<tr> +<td>^⌘w</td> + <td>:</td> + <td>c</td> + <td>create a reference from selected text, clipboard as url</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +</table><table> HTML commands +<tr> +<th colspan="4">HTML commands (^⌘e)</th> +</tr> +<tr> +<td>^⌘e</td> + <td></td> + <td>=</td> + <td>=“[cursor]”</td> +</tr> +<tr> +<td>^⌘e</td> + <td></td> + <td>e</td> + <td>entity &[cursor];</td> +</tr> +<tr> +<td>^⌘e</td> + <td></td> + <td>/</td> + <td>http://</td> +</tr> +<tr> +<td>^⌘e</td> + <td></td> + <td>t</td> + <td>Make previous word into paired HTML tag</td> +</tr> +<tr> +<td colspan="3">HTML Links (a)</td> + <td></td> +</tr> +<tr> +<td>^⌘e</td> + <td>a</td> + <td>t</td> + <td>Insert HTML link for selected text, leave cursor in the href with “http://” selected</td> +</tr> +<tr> +<td>^⌘e</td> + <td>a</td> + <td>c</td> + <td>Insert HTML link with clipboard as href</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +<tr> +<td colspan="3">HTML Image (i)</td> + <td></td> +</tr> +<tr> +<td>^⌘e</td> + <td>i</td> + <td>t</td> + <td>Insert image tag, any selected text is alt text, leave cursor in src attribute</td> +</tr> +<tr> +<td>^⌘e</td> + <td>i</td> + <td>c</td> + <td>Insert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute</td> +</tr> +<tr> +<td colspan="4"></td> +</tr> +</table><table> Surround commands +<tr> +<th colspan="4">Surround commands (^⌘s)</th> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>(</td> + <td>wrap () with spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>)</td> + <td>wrap () no spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>\</td> + <td>wrap [] with spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>\</td> + <td>wrap [] no spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>{</td> + <td>wrap {} with spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>}</td> + <td>wrap {} no spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td><</td> + <td>wrap <> with spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>></td> + <td>wrap <> no spaces</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>’</td> + <td>wrap single quotes</td> +</tr> +<tr> +<td>^⌘s</td> + <td></td> + <td>`</td> + <td>wrap backticks</td> +</tr> +</table><p>This documentation is generated automatically from the comments and commands in the DefaultKeyBinding.dict file. The script <code>document_keybindings.rb</code> 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).</p> + </section> + <footer> + <p>This project is maintained by <a href="https://github.com/ttscoff">ttscoff</a></p> + <p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p> + </footer> + </div> + <script src="javascripts/scale.fix.js"></script> + + </body> +</html>
\ No newline at end of file |
