mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -778,6 +778,9 @@ class EditSession
|
||||
lowerCase: ->
|
||||
@replaceSelectedText selectWordIfEmpty:true, (text) => text.toLowerCase()
|
||||
|
||||
joinLine: ->
|
||||
@mutateSelectedText (selection) -> selection.joinLine()
|
||||
|
||||
expandLastSelectionOverLine: ->
|
||||
@getLastSelection().expandOverLine()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user