From a62dfd4f8aadc4d0dffbdba4916958f2bbf78cec Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Tue, 15 Nov 2011 01:40:08 -0600 Subject: tweaks and documentation update --- readme.md | 614 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 394 insertions(+), 220 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index ff8c8e7..57b3657 100644 --- a/readme.md +++ b/readme.md @@ -5,23 +5,25 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f [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.* +*Grouped items begin with the groups shortcut (if exists), followed by a subgroup (if exists) followed by the Keys specified.*

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.

+ -+ + @@ -30,438 +32,610 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f - - - - - - - - - - - - - - - + - + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - - + + + - - + + + + - - + + + - - + + + - - + + + - - + + - -
All purpose key combos
GroupSubgroup Keys Function
Opt-zcopy character before cursor
Opt-rrepeat character before cursor
Opt-ttranspose characters
Opt-+‘^U’ uppercase word
Opt--‘^u’ lowercase word
Opt-.capitalize word‘^T’titlecase word
Ctrl-wdelete word before cursor‘^⌥U’uppercase current paragraph
Opt-wselect word‘^⌥u’lowercase current paragraph
Opt-fcut word (fold)‘^⌥t’titlecase paragraph
Opt-gcopy word (grab)‘^w’delete word before cursor
Opt-hpaste word (hit)‘⌥w’select word
Opt-l‘⌥S’ select entire line/paragraph
Opt-s‘⌥s’ select from beginning of paragrah to last character
Opt-d‘⌥d’ delete line/paragraph
Opt-y‘⌥y’ copy paragraph
Opt-x‘⌥x’ cut paragraph
Opt-p‘⌥p’ paste paragraph below
Opt-Shift-P‘⌥P’ paste paragraph above
Ctrl-Shift-A‘^A’ select to beginning of paragraph and copy
Ctrl-Shift-E‘^E’ select to end of paragraph and copy
Opt-q‘⌥q’ cut to beginning of paragraph
Opt-k‘⌥k’ cut to end of paragraph
Opt-,move paragraph up a line, inserting blank space after‘⌥o’blank line after current
Opt-␠move paragraph to end of document‘⌥O’blank line before current
^⌘c Opt-oblank line after current‘/’comment with “//”
^⌘c Opt-Shift-Oblank line before current‘\’comment with “#”
^⌘c Cmd-Opt-/comment with “//”‘!’HTML Comment
^⌘c Cmd-Opt-3comment with “#”‘*’CSS Comment
- - - - ----- - - - - - + + + + - - - - - + + + - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - + + + + - - - + + + + - - - + + + + - - - + + + + - - - + + + + - - + + + - - + + + - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + - - - + + + + - - + + + - -
Markdown-specific shortcuts (Ctrl-Cmd-W)
GroupKeysFunction‘⌘⌥b’bold selection (Markdown)
Cmd-Opt-bbold selection‘⌘⌥i’italicize selection (Markdown)
Cmd-Opt-iitalicize selection‘⌘⌥=’increase markdown header level
Ctrl-Cmd-wReturnforce Return‘⌘⌥-’decrease markdown header level
^⌘w‘↩’force carriage return in text field
^⌘w‘⇥’force tab in text field
^⌘wh‘1’1st level Headline
^⌘wh‘2’2nd level Headline
^⌘wh‘3’3rd level Headline
^⌘wh‘4’4th level Headline
Ctrl-Cmd-wforce Tab^⌘wh‘5’5th level Headline
Ctrl-Cmd-w1–4# Headlines^⌘wh‘6’6th level Headline
Ctrl-Cmd-wl,tlink text "[selected text](|)"^⌘wl‘t’create a link for selected text, cursor between () “selected text
Ctrl-Cmd-wl,cclipboard link "[|selected text](clipboard contents)"^⌘wl‘c’create a link for selected text, inserting clipboard as url “[cursorselected text](clipboard contents)”
Ctrl-Cmd-wi,timage, selection as alt "![selected text](|)"^⌘wi‘t’same as lt, but with image syntax “selected text
Ctrl-Cmd-wi,cclipboard image "![|selected text](clipboard contents)"^⌘wi‘c’same as lc, but with image syntax “selected text
Ctrl-Cmd-w:,t^⌘w:‘t’ create a reference from selected text
Ctrl-Cmd-w:,c^⌘w:‘c’ create a reference from selected text, clipboard as url
Ctrl-Cmd-w[^⌘w‘[’ insert reference link
Ctrl-Cmd-w+|-|*lists^⌘w‘+’+ bulleted list
^⌘w‘-’- bulleted list
^⌘w‘*’* bulleted list
^⌘w‘8’convert current numbered list item to bullet, handles indentation
^⌘w‘1’convert current bullet list item to numbered
Ctrl-Cmd-w=,Opt-Shift-Lnew list item after current^⌘e‘=’=“cursor”
Ctrl-Cmd-weentity^⌘e‘e’entity &cursor;
Ctrl-Cmd-w=,/^⌘e‘/’ http://
- - - - ----- - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - -
Surround (Ctrl-Cmd-s)
GroupKeysFunction^⌘e‘t’Make previous word into paired HTML tag
^⌘ea‘t’Insert HTML link for selected text, leave cursor in the href with “http://” selected
^⌘ea‘c’Insert HTML link with clipboard as href
^⌘ei‘t’Insert image tag, any selected text is alt text, leave cursor in src attribute
^⌘ei‘c’Insert image tag, clipboard as src, any selected text as alt, leave cursor at beginning of alt attribute
Ctrl-Cmd-s(‘⌥⌘↩’Command Option Enter to continue a list item with indentation and include the same delimiter
‘⇧⇥’Shift Tab remove one tab (or character) from start of line (outdent)
^⌘s‘(’ wrap () with spaces
Ctrl-Cmd-s)^⌘s‘)’ wrap () no spaces
Ctrl-Cmd-s[^⌘s‘[’ wrap [] with spaces
Ctrl-Cmd-s]^⌘s‘]’ wrap [] no spaces
Ctrl-Cmd-s{^⌘s‘{’ wrap {} with spaces
Ctrl-Cmd-s}^⌘s‘}’ wrap {} no spaces
Ctrl-Cmd-s<^⌘s‘<’ wrap <> with spaces
Ctrl-Cmd-s>^⌘s‘>’ wrap <> no spaces
Ctrl-Cmd-s^⌘s’’’ wrap single quotes
Ctrl-Cmd-s`^⌘s‘`’ wrap backticks
Ctrl-Cmd-s"^⌘s‘\’ wrap double quote
- - - - ----- - - - - - - - - - - - + + - + + - + + - - + + + - - + + + - - + + + - - + + + - - + + + - - + + + - -
List/Paragraph motion
GroupKeysFunction
Ctrl-Cmd-k‘^⌘k’ move line up
Ctrl-Cmd-j‘^⌘j’ move line down
Ctrl-Cmd-l‘^⌘l’ indent line
Ctrl-Cmd-houtdent line (all the way)‘^⌘h’outdent line (one tab or char)
Ctrl-Opt-kcopy line and paste above‘^⌘↑’move line up with arrow keys
Ctrl-Opt-jcopy line and paste below‘^⌘↓’move line down with arrow keys
Cmd-Opt-Upmodify selection up‘^⌘→’move line left with arrow keys
Cmd-Opt-Downmodify selection down‘^⌘←’move line right with arrow keys
Cmd-DelForward delete to end of paragraph‘^⇧⌘←’Control-shift-command-left arrow : Full outdent - Deletes all leading space (or first word) of line/paragraph
- - - - ----- - - - - - + + + + + + + + + + + + + + + + - - - - - + + + - - + + + - - + + + - - + + + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Document navigation
GroupKeysFunction‘⌘⌥⇧↑’modify selection up by paragraph (Command Option Shift Up)
‘⌘⌥⇧↓’modify selection down by paragraph (Command Option Shift Down)
‘^⌥⇧←’modify selection left by word
PgUpPage Up‘^⌥⇧→’modify selection right by word
PgDownPage Down‘⌘↩’TextMate Command-Return (Command Enter)
Opt-PgUpScroll up‘⌘⇧↩’Insert blank line above paragraph (Command Shift Enter)
Opt-PgDownScroll Down‘⌥_’hyphenate next space and move to next word
Opt-1‘⌥1’ bookmark
Opt-2‘⌥2’ jump to bookmark
⇧⎋d‘d’‘dd’ delete line/paragraph
⇧⎋d‘⇧’‘d$’ delete from cursor to end of graf
⇧⎋d‘0’‘d0’ delete to beginning of paragraph
⇧⎋d‘^’‘d^’ delete to beginning of paragraph
⇧⎋‘p’paste after
⇧⎋‘P’paste before
⇧⎋‘y’Yank
⇧⎋5‘d’‘dd’ delete line/paragraph
⇧⎋‘p’paste 5 times after
⇧⎋‘P’paste 5 times before
⇧⎋‘y’paste 5 times in a row
‘⌥r’repeat character before cursor
‘⌘␡’Forward delete to end of paragraph
-- cgit v1.2.3