diff options
| author | Teddy Wing | 2015-07-22 20:59:12 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-07-22 20:59:12 -0400 |
| commit | 5a9ec5a495b27e1f6791e292633538f38dd145ed (patch) | |
| tree | 1ad41925c96a8cdf8ee1c337358d869b44d9941c /DefaultKeyBinding.dict | |
| parent | 836d332a86b6aa45f2016530dd544ca8a57f71f3 (diff) | |
| download | KeyBindings-5a9ec5a495b27e1f6791e292633538f38dd145ed.tar.bz2 | |
DefaultKeyBinding.dict: Change bindings for new line before & after ΒΆ
Apple-Return is a fairly common binding and I don't want it to conflict
with anything. I use it quite often when making comments on GitHub and
today noticed a little hiccup when trying to submit a comment. When I
pressed Apple-Return a second time the comment submitted successfully,
but I'd prefer not to take my chances.
That said, these seem like they could be useful bindings to have, so
bind them to something close to the existing 'o' & 'O' bindings.
Diffstat (limited to 'DefaultKeyBinding.dict')
| -rw-r--r-- | DefaultKeyBinding.dict | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/DefaultKeyBinding.dict b/DefaultKeyBinding.dict index 369745d..372b124 100644 --- a/DefaultKeyBinding.dict +++ b/DefaultKeyBinding.dict @@ -52,6 +52,11 @@ // blank line before current "~O" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:); + // Insert blank line after paragraph + "^~o" = (moveToEndOfParagraph:, insertNewline:); + // Insert blank line above paragraph + "^~O" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:); + // move line up "^@k" = (selectParagraph:, setMark:, deleteToMark:, moveLeft:, moveToBeginningOfParagraph:, yank:, moveLeft:, selectToMark:, moveLeft:); @@ -101,11 +106,6 @@ // Move to end of paragraph and delete trailing whitespace (new) "^~\UF703" = (moveToEndOfParagraph:, insertText:, " ", selectWord:, deleteBackward:); - // TextMate Command-Return (Command Enter) - "@\U000D" = (moveToEndOfParagraph:, insertNewline:); - // Insert blank line above paragraph (Command Shift Enter) - "@$\U000D" = (moveToBeginningOfParagraph:, moveLeft:, insertNewline:); - // > this will kill non alphanumeric symbols and punctuation, use only on *words* // hyphenate next space and move to next word "@~_" = (selectWord:,moveRight:,setMark:,moveWordRight:,moveWordLeft:,moveLeft:,selectWord:,insertText:,"-",moveWordRight:); |
