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 “#” - +@@ -191,81 +191,81 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f - + - + - - + + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + @@ -274,7 +274,7 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f
Markdown-specific shortcuts (^⌘W) Markdown-specific shortcuts (Ctrl-Cmd-W)
⌘⌥bCmd-Opt-b bold selection
⌘⌥iCmd-Opt-i italicize selection
^⌘w⏎Ctrl-Cmd-wReturn force Return
^⌘wCtrl-Cmd-w force Tab
^⌘w1–4Ctrl-Cmd-w1–4 # Headlines
^⌘wCtrl-Cmd-w l,tlink text "[selected text]( | )"link text "[selected text](|)"
^⌘wCtrl-Cmd-w l,cclipboard link "[ | selected text](clipboard contents)"clipboard link "[|selected text](clipboard contents)"
^⌘wCtrl-Cmd-w i,timage, selection as alt "![selected text]( | )"image, selection as alt "![selected text](|)"
^⌘wCtrl-Cmd-w i,cclipboard image "![ | selected text](clipboard contents)"clipboard image "![|selected text](clipboard contents)"
^⌘wCtrl-Cmd-w :,t create a reference from selected text
^⌘wCtrl-Cmd-w :,c create a reference from selected text, clipboard as url
^⌘wCtrl-Cmd-w [ insert reference link
^⌘wCtrl-Cmd-w +|-|* lists
^⌘w=,⌥⇧LCtrl-Cmd-w=,Opt-Shift-L new list item after current
^⌘wCtrl-Cmd-w e entity
^⌘wCtrl-Cmd-w =,/ http://
- +@@ -291,58 +291,58 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f - + - + - + - + - + - + - + - + - - + + - + - - + + @@ -368,47 +368,47 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f - + - + - + - + - + - + - + - + - + @@ -444,22 +444,22 @@ DefaultKeyBindings.dict file (`~/Library/KeyBindings/DefaultKeyBindings.dict`) f - + - + - + - + -- cgit v1.2.3
Surround (^⌘s) Surround (Ctrl-Cmd-s)
^⌘sCtrl-Cmd-s ( wrap () with spaces
^⌘sCtrl-Cmd-s ) wrap () no spaces
^⌘sCtrl-Cmd-s [ wrap [] with spaces
^⌘sCtrl-Cmd-s ] wrap [] no spaces
^⌘sCtrl-Cmd-s { wrap {} with spaces
^⌘sCtrl-Cmd-s } wrap {} no spaces
^⌘sCtrl-Cmd-s < wrap <> with spaces
^⌘sCtrl-Cmd-s > wrap <> no spaces
^⌘sCtrl-Cmd-s wrap single quotes
^⌘sCtrl-Cmd-s ` wrap backticks
^⌘s"Ctrl-Cmd-s" wrap double quote
^⌘kCtrl-Cmd-k move line up
^⌘jCtrl-Cmd-j move line down
^⌘lCtrl-Cmd-l indent line
^⌘hCtrl-Cmd-h outdent line (all the way)
^⌥kCtrl-Opt-k copy line and paste above
^⌥jCtrl-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
⌥PgUpOpt-PgUp Scroll up
⌥PgDownOpt-PgDown Scroll Down
⌥1Opt-1 bookmark
⌥2Opt-2 jump to bookmark