Support joining editor lines with ctrl-J

This can be used with or without a selection to join one
or more lines with the line below it separated by a space.

Refs #134
This commit is contained in:
Kevin Sawicki
2013-04-04 11:05:11 -07:00
parent 44d78ed30d
commit e442dfff11
5 changed files with 68 additions and 0 deletions

View File

@@ -778,6 +778,9 @@ class EditSession
lowerCase: ->
@replaceSelectedText selectWordIfEmpty:true, (text) => text.toLowerCase()
joinLine: ->
@mutateSelectedText (selection) -> selection.joinLine()
expandLastSelectionOverLine: ->
@getLastSelection().expandOverLine()