Skip to content

Commit

Permalink
fix markdown break command
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Oct 1, 2015
1 parent 75ff2a2 commit 19e04aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions DefaultKeyBinding.dict
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@
// Move to end of paragraph and delete trailing whitespace (new)
"^~\UF703" = (moveToEndOfParagraph:, insertText:, " ", selectWord:, deleteBackward:);

// TextMate Command-Return (Command Enter)
// TextMate Command-Return (Command Return)
"@\U000D" = (moveToEndOfParagraph:, insertNewline:);
// Insert blank line above paragraph (Command Shift Enter)
// Insert blank line above paragraph (Command Shift Return)
"@$\U000D" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:);
// Insert space and uppercase next character (Shift-Option-Space) (new)
"$~\040" = (insertText:, " ", moveForward:, insertText:, " ", moveWordBackward:, capitalizeWord:, moveForward:, deleteForward:, moveBackward:);
Expand All @@ -135,7 +135,7 @@
// jump to bookmark
"~2" = (swapWithMark:,centerSelectionInVisibleArea:);

// > Command Option Enter
// > Command OptionReturn
// Continue a list item with indentation and include the same delimiter
"~@\U000D" = ( breakUndoCoalescing, moveToEndOfParagraph:, insertText:, "x", moveToBeginningOfParagraph:, selectWord:, moveRightAndModifySelection:, moveWordForwardAndModifySelection:, moveWordBackwardAndModifySelection:, moveLeftAndModifySelection:, setMark:, deleteToMark:, yank:, moveToEndOfParagraph:, deleteBackward:, insertNewlineIgnoringFieldEditor:, deleteToBeginningOfParagraph:, yank:, insertText:, " ", selectWord:, insertText:, " ");
// > Shift Tab
Expand All @@ -159,8 +159,8 @@
"@~i" = (selectWord:, setMark:, swapWithMark:, deleteToMark:, insertText:, "_", yank:, insertText:, " ", moveLeft:, insertText:, "_", moveRight:, deleteBackward:);
// backtick selection (Markdown)
"@~`" = (selectWord:, setMark:, swapWithMark:, deleteToMark:, insertText:, "`", yank:, insertText:, " ", moveLeft:, insertText:, "`", moveRight:, deleteBackward:);
// break line with double space (Markdown) (Control-Command-Enter)
"^@\U000D" = (moveToEndOfParagraph:, insertNewline:);
// break line with double space (Markdown) (Control-Command-Return)
"^@\U000D" = (insertText:, " ", insertNewline:);

// increase markdown header level
"@~=" = (setMark:, moveToBeginningOfParagraph:, insertText:, "# ", selectWord:, delete:, swapWithMark:, moveRight:);
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ Any open applications will need to be re-started before the key bindings will ta
</tr>
<tr>
<td style="text-align:center;">⌘↩</td>
<td style="text-align:left;">TextMate Command-Return (Command Enter)</td>
<td style="text-align:left;">TextMate Command-Return (Command Return)</td>
</tr>
<tr>
<td style="text-align:center;">⌘⇧↩</td>
<td style="text-align:left;">Insert blank line above paragraph (Command Shift Enter)</td>
<td style="text-align:left;">Insert blank line above paragraph (Command Shift Return)</td>
</tr>
<tr>
<td style="text-align:center;">⇧⌥␣</td>
Expand All @@ -241,7 +241,7 @@ Any open applications will need to be re-started before the key bindings will ta
</tr>
<tr>
<td style="text-align:center;">⌥⌘↩</td>
<td style="text-align:left;">Continue a list item with indentation and include the same delimiter ( Command Option Enter)</td>
<td style="text-align:left;">Continue a list item with indentation and include the same delimiter ( Command OptionReturn)</td>
</tr>
<tr>
<td style="text-align:center;">⇧⇥</td>
Expand All @@ -261,7 +261,7 @@ Any open applications will need to be re-started before the key bindings will ta
</tr>
<tr>
<td style="text-align:center;">⌃⌘↩</td>
<td style="text-align:left;">break line with double space (Markdown) (Control-Command-Enter)</td>
<td style="text-align:left;">break line with double space (Markdown) (Control-Command-Return)</td>
</tr>
<tr>
<td style="text-align:center;">⌘⌥=</td>
Expand Down

0 comments on commit 19e04aa

Please sign in to comment.