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.
+
- All purpose key combos
+
| Group |
+ Subgroup |
Keys |
Function |
@@ -30,438 +32,610 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
|
- Opt-z |
- copy character before cursor |
-
-
- |
- Opt-r |
- repeat character before cursor |
-
-
- |
- Opt-t |
- transpose characters |
-
-
|
- Opt-+ |
+ ‘^U’ |
uppercase word |
|
- Opt-- |
+ |
+ ‘^u’ |
lowercase word |
|
- Opt-. |
- capitalize word |
+ |
+ ‘^T’ |
+ titlecase word |
|
- Ctrl-w |
- delete word before cursor |
+ |
+ ‘^⌥U’ |
+ uppercase current paragraph |
|
- Opt-w |
- select word |
+ |
+ ‘^⌥u’ |
+ lowercase current paragraph |
|
- Opt-f |
- cut word (fold) |
+ |
+ ‘^⌥t’ |
+ titlecase paragraph |
|
- Opt-g |
- copy word (grab) |
+ |
+ ‘^w’ |
+ delete word before cursor |
|
- Opt-h |
- paste 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-o |
- blank line after current |
+ ‘/’ |
+ comment with “//” |
+ | ^⌘c |
|
- Opt-Shift-O |
- blank line before current |
+ ‘\’ |
+ comment with “#” |
+ | ^⌘c |
|
- Cmd-Opt-/ |
- comment with “//” |
+ ‘!’ |
+ HTML Comment |
+ | ^⌘c |
|
- Cmd-Opt-3 |
- comment with “#” |
+ ‘*’ |
+ CSS Comment |
-
-
-
-
-
- Markdown-specific shortcuts (Ctrl-Cmd-W)
-
-
-
-
-
-
-
- | Group |
- Keys |
- Function |
+ |
+ |
+ ‘⌘⌥b’ |
+ bold selection (Markdown) |
-
-
-
|
- Cmd-Opt-b |
- bold selection |
+ |
+ ‘⌘⌥i’ |
+ italicize selection (Markdown) |
|
- Cmd-Opt-i |
- italicize selection |
+ |
+ ‘⌘⌥=’ |
+ increase markdown header level |
- | Ctrl-Cmd-w |
- Return |
- force Return |
+ |
+ |
+ ‘⌘⌥-’ |
+ decrease markdown header level |
+
+
+ | ^⌘w |
+ |
+ ‘↩’ |
+ force carriage return in text field |
+
+
+ | ^⌘w |
+ |
+ ‘⇥’ |
+ force tab in text field |
+
+
+ | ^⌘w |
+ h |
+ ‘1’ |
+ 1st level Headline |
+
+
+ | ^⌘w |
+ h |
+ ‘2’ |
+ 2nd level Headline |
+
+
+ | ^⌘w |
+ h |
+ ‘3’ |
+ 3rd level Headline |
+
+
+ | ^⌘w |
+ h |
+ ‘4’ |
+ 4th level Headline |
- | Ctrl-Cmd-w |
- ⇥ |
- force Tab |
+ ^⌘w |
+ h |
+ ‘5’ |
+ 5th level Headline |
- | Ctrl-Cmd-w |
- 1–4 |
- # Headlines |
+ ^⌘w |
+ h |
+ ‘6’ |
+ 6th level Headline |
- | Ctrl-Cmd-w |
- l,t |
- link text "[selected text](|)" |
+ ^⌘w |
+ l |
+ ‘t’ |
+ create a link for selected text, cursor between () “selected text” |
- | Ctrl-Cmd-w |
- l,c |
- clipboard link "[|selected text](clipboard contents)" |
+ ^⌘w |
+ l |
+ ‘c’ |
+ create a link for selected text, inserting clipboard as url “[cursorselected text](clipboard contents)” |
- | Ctrl-Cmd-w |
- i,t |
- image, selection as alt "" |
+ ^⌘w |
+ i |
+ ‘t’ |
+ same as lt, but with image syntax “ ” |
- | Ctrl-Cmd-w |
- i,c |
- clipboard image "" |
+ ^⌘w |
+ i |
+ ‘c’ |
+ same as lc, but with image syntax “ ” |
- | 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-L |
- new list item after current |
+ ^⌘e |
+ |
+ ‘=’ |
+ =“cursor” |
- | Ctrl-Cmd-w |
- e |
- entity |
+ ^⌘e |
+ |
+ ‘e’ |
+ entity &cursor; |
- | Ctrl-Cmd-w |
- =,/ |
+ ^⌘e |
+ |
+ ‘/’ |
http:// |
-
-
-
-
-
- Surround (Ctrl-Cmd-s)
-
-
-
-
-
-
-
- | Group |
- Keys |
- Function |
+ ^⌘e |
+ |
+ ‘t’ |
+ Make previous word into paired HTML tag |
+
+
+ | ^⌘e |
+ a |
+ ‘t’ |
+ Insert HTML link for selected text, leave cursor in the href with “http://” selected |
+
+
+ | ^⌘e |
+ a |
+ ‘c’ |
+ Insert HTML link with clipboard as href |
+
+
+ | ^⌘e |
+ i |
+ ‘t’ |
+ Insert image tag, any selected text is alt text, leave cursor in src attribute |
+
+
+ | ^⌘e |
+ i |
+ ‘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
-
-
-
-
-
-
-
-
- | Group |
- Keys |
- Function |
-
-
-
-
|
- Ctrl-Cmd-k |
+ |
+ ‘^⌘k’ |
move line up |
|
- Ctrl-Cmd-j |
+ |
+ ‘^⌘j’ |
move line down |
|
- Ctrl-Cmd-l |
+ |
+ ‘^⌘l’ |
indent line |
|
- Ctrl-Cmd-h |
- outdent line (all the way) |
+ |
+ ‘^⌘h’ |
+ outdent line (one tab or char) |
|
- Ctrl-Opt-k |
- copy line and paste above |
+ |
+ ‘^⌘↑’ |
+ move line up with arrow keys |
|
- Ctrl-Opt-j |
- copy line and paste below |
+ |
+ ‘^⌘↓’ |
+ move line down with arrow keys |
|
- Cmd-Opt-Up |
- modify selection up |
+ |
+ ‘^⌘→’ |
+ move line left with arrow keys |
|
- Cmd-Opt-Down |
- modify selection down |
+ |
+ ‘^⌘←’ |
+ move line right with arrow keys |
|
- Cmd-Del |
- Forward delete to end of paragraph |
+ |
+ ‘^⇧⌘←’ |
+ Control-shift-command-left arrow : Full outdent - Deletes all leading space (or first word) of line/paragraph |
-
-
-
-
-
- Document navigation
-
-
-
-
-
-
-
- | Group |
- Keys |
- Function |
+ |
+ |
+ ‘⌘⌥⇧↑’ |
+ modify selection up by paragraph (Command Option Shift Up) |
+
+
+ |
+ |
+ ‘⌘⌥⇧↓’ |
+ modify selection down by paragraph (Command Option Shift Down) |
+
+
+ |
+ |
+ ‘^⌥⇧←’ |
+ modify selection left by word |
-
-
-
|
- PgUp |
- Page Up |
+ |
+ ‘^⌥⇧→’ |
+ modify selection right by word |
|
- PgDown |
- Page Down |
+ |
+ ‘⌘↩’ |
+ TextMate Command-Return (Command Enter) |
|
- Opt-PgUp |
- Scroll up |
+ |
+ ‘⌘⇧↩’ |
+ Insert blank line above paragraph (Command Shift Enter) |
|
- Opt-PgDown |
- Scroll 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