From bcbb7a8acfeac76aa47229aaa783162b784ca618 Mon Sep 17 00:00:00 2001
From: Brett Terpstra
Date: Sat, 13 Aug 2011 21:22:25 -0500
Subject: updated command-return lines
---
DefaultKeyBinding.dict | 12 +++-
readme.md | 164 ++++++++++++++++++++++++-------------------------
2 files changed, 91 insertions(+), 85 deletions(-)
diff --git a/DefaultKeyBinding.dict b/DefaultKeyBinding.dict
index 7879968..b767138 100644
--- a/DefaultKeyBinding.dict
+++ b/DefaultKeyBinding.dict
@@ -1,4 +1,9 @@
{
+ // @ = Command
+ // ~ = Option
+ // ^ = Control
+ // $ = Shift (when used on non-alpha characters, otherwise, just capitalize them)
+
// copy character before cursor
"~z" = (moveLeftAndModifySelection:, copy:, moveRight:);
// repeat character before cursor
@@ -158,9 +163,10 @@
// 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:);
+ // TextMate Command-Return (jump to end of graf and insert new line)
+ "@\U000D" = (moveToEndOfParagraph:, insertNewline:);
+ // Jump to line before graf and insert new line
+ "@$\U000D" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:);
// Forward delete to end of paragraph
"@\Uf728" = deleteToEndOfParagraph:;
diff --git a/readme.md b/readme.md
index 2db8567..ff8c8e7 100644
--- a/readme.md
+++ b/readme.md
@@ -30,150 +30,150 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
|
- ⌥z |
+ Opt-z |
copy character before cursor |
|
- ⌥r |
+ Opt-r |
repeat character before cursor |
|
- ⌥t |
+ Opt-t |
transpose characters |
|
- ⌥+ |
+ Opt-+ |
uppercase word |
|
- ⌥- |
+ Opt-- |
lowercase word |
|
- ⌥. |
+ Opt-. |
capitalize word |
|
- ^w |
+ Ctrl-w |
delete word before cursor |
|
- ⌥w |
+ Opt-w |
select word |
|
- ⌥f |
+ Opt-f |
cut word (fold) |
|
- ⌥g |
+ Opt-g |
copy word (grab) |
|
- ⌥h |
+ Opt-h |
paste word (hit) |
|
- ⌥l |
+ Opt-l |
select entire line/paragraph |
|
- ⌥s |
+ Opt-s |
select from beginning of paragrah to last character |
|
- ⌥d |
+ Opt-d |
delete line/paragraph |
|
- ⌥y |
+ Opt-y |
copy paragraph |
|
- ⌥x |
+ Opt-x |
cut paragraph |
|
- ⌥p |
+ Opt-p |
paste paragraph below |
|
- ⌥⇧P |
+ Opt-Shift-P |
paste paragraph above |
|
- ^⇧A |
+ Ctrl-Shift-A |
select to beginning of paragraph and copy |
|
- ^⇧E |
+ Ctrl-Shift-E |
select to end of paragraph and copy |
|
- ⌥q |
+ Opt-q |
cut to beginning of paragraph |
|
- ⌥k |
+ Opt-k |
cut to end of paragraph |
|
- ⌥, |
+ Opt-, |
move paragraph up a line, inserting blank space after |
|
- ⌥␠ |
+ Opt-␠ |
move paragraph to end of document |
|
- ⌥o |
+ Opt-o |
blank line after current |
|
- ⌥⇧O |
+ Opt-Shift-O |
blank line before current |
|
- ⌘⌥/ |
- comment with “//” |
+ Cmd-Opt-/ |
+ comment with “//” |
|
- ⌘⌥3 |
- comment with “#” |
+ Cmd-Opt-3 |
+ comment with “#” |
- Markdown-specific shortcuts (^⌘W)
+ Markdown-specific shortcuts (Ctrl-Cmd-W)
@@ -191,81 +191,81 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
|
- ⌘⌥b |
+ Cmd-Opt-b |
bold selection |
|
- ⌘⌥i |
+ Cmd-Opt-i |
italicize selection |
- | ^⌘w |
- ⏎ |
+ Ctrl-Cmd-w |
+ Return |
force Return |
- | ^⌘w |
- ⇥ |
+ Ctrl-Cmd-w |
+ ⇥ |
force Tab |
- | ^⌘w |
- 1–4 |
+ Ctrl-Cmd-w |
+ 1–4 |
# Headlines |
- | ^⌘w |
+ Ctrl-Cmd-w |
l,t |
- link text "[selected text]( | )" |
+ link text "[selected text](|)" |
- | ^⌘w |
+ Ctrl-Cmd-w |
l,c |
- clipboard link "[ | selected text](clipboard contents)" |
+ clipboard link "[|selected text](clipboard contents)" |
- | ^⌘w |
+ Ctrl-Cmd-w |
i,t |
- image, selection as alt "" |
+ image, selection as alt "" |
- | ^⌘w |
+ Ctrl-Cmd-w |
i,c |
- clipboard image "" |
+ clipboard image "" |
- | ^⌘w |
+ Ctrl-Cmd-w |
:,t |
create a reference from selected text |
- | ^⌘w |
+ Ctrl-Cmd-w |
:,c |
create a reference from selected text, clipboard as url |
- | ^⌘w |
+ Ctrl-Cmd-w |
[ |
insert reference link |
- | ^⌘w |
+ Ctrl-Cmd-w |
+|-|* |
lists |
- | ^⌘w |
- =,⌥⇧L |
+ Ctrl-Cmd-w |
+ =,Opt-Shift-L |
new list item after current |
- | ^⌘w |
+ Ctrl-Cmd-w |
e |
entity |
- | ^⌘w |
+ Ctrl-Cmd-w |
=,/ |
http:// |
@@ -274,7 +274,7 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
- Surround (^⌘s)
+ Surround (Ctrl-Cmd-s)
@@ -291,58 +291,58 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
- | ^⌘s |
+ Ctrl-Cmd-s |
( |
wrap () with spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
) |
wrap () no spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
[ |
wrap [] with spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
] |
wrap [] no spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
{ |
wrap {} with spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
} |
wrap {} no spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
< |
wrap <> with spaces |
- | ^⌘s |
+ Ctrl-Cmd-s |
> |
wrap <> no spaces |
- | ^⌘s |
- ’ |
+ Ctrl-Cmd-s |
+ ’ |
wrap single quotes |
- | ^⌘s |
+ Ctrl-Cmd-s |
` |
wrap backticks |
- | ^⌘s |
- " |
+ Ctrl-Cmd-s |
+ " |
wrap double quote |
@@ -368,47 +368,47 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
|
- ^⌘k |
+ Ctrl-Cmd-k |
move line up |
|
- ^⌘j |
+ Ctrl-Cmd-j |
move line down |
|
- ^⌘l |
+ Ctrl-Cmd-l |
indent line |
|
- ^⌘h |
+ Ctrl-Cmd-h |
outdent line (all the way) |
|
- ^⌥k |
+ Ctrl-Opt-k |
copy line and paste above |
|
- ^⌥j |
+ Ctrl-Opt-j |
copy line and paste below |
|
- ⌘⌥ꜛ |
+ Cmd-Opt-Up |
modify selection up |
|
- ⌘⌥ꜜ |
+ Cmd-Opt-Down |
modify selection down |
|
- ⌘␡ |
+ Cmd-Del |
Forward delete to end of paragraph |
@@ -444,22 +444,22 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
|
- ⌥PgUp |
+ Opt-PgUp |
Scroll up |
|
- ⌥PgDown |
+ Opt-PgDown |
Scroll Down |
|
- ⌥1 |
+ Opt-1 |
bookmark |
|
- ⌥2 |
+ Opt-2 |
jump to bookmark |
--
cgit v1.2.3