diff --git a/src/app/editor.coffee b/src/app/editor.coffee index a9583b713..53f58e5e8 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -118,10 +118,12 @@ class Editor extends View 'editor:move-to-first-character-of-line': @moveCursorToFirstCharacterOfLine 'editor:move-to-beginning-of-word': @moveCursorToBeginningOfWord 'editor:move-to-end-of-word': @moveCursorToEndOfWord + 'editor:move-to-beginning-of-next-word': @moveCursorToBeginningOfNextWord 'editor:select-to-end-of-line': @selectToEndOfLine 'editor:select-to-beginning-of-line': @selectToBeginningOfLine 'editor:select-to-end-of-word': @selectToEndOfWord 'editor:select-to-beginning-of-word': @selectToBeginningOfWord + 'editor:select-to-beginning-of-next-word': @selectToBeginningOfNextWord 'editor:select-line': @selectLine 'editor:transpose': @transpose 'editor:upper-case': @upperCase @@ -174,6 +176,7 @@ class Editor extends View moveCursorRight: -> @activeEditSession.moveCursorRight() moveCursorToBeginningOfWord: -> @activeEditSession.moveCursorToBeginningOfWord() moveCursorToEndOfWord: -> @activeEditSession.moveCursorToEndOfWord() + moveCursorToBeginningOfNextWord: -> @activeEditSession.moveCursorToEndOfWord(); @activeEditSession.moveCursorRight() moveCursorToTop: -> @activeEditSession.moveCursorToTop() moveCursorToBottom: -> @activeEditSession.moveCursorToBottom() moveCursorToBeginningOfLine: -> @activeEditSession.moveCursorToBeginningOfLine() @@ -211,6 +214,7 @@ class Editor extends View selectToEndOfLine: -> @activeEditSession.selectToEndOfLine() selectToBeginningOfWord: -> @activeEditSession.selectToBeginningOfWord() selectToEndOfWord: -> @activeEditSession.selectToEndOfWord() + selectToBeginningOfNextWord: -> @activeEditSession.selectToEndOfWord(); @activeEditSession.selectRight() selectWord: -> @activeEditSession.selectWord() selectLine: -> @activeEditSession.selectLine() selectToScreenPosition: (position) -> @activeEditSession.selectToScreenPosition(position)