meta-alt-u unfolds lines at cursor

This commit is contained in:
Corey Johnson
2012-05-22 09:38:14 -07:00
parent ed271fee0f
commit a7d43c2cca
3 changed files with 19 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ class Editor extends View
'redo': @redo
'toggle-soft-wrap': @toggleSoftWrap
'fold-selection': @foldSelection
'unfold': => @unfoldRow(@getCursorBufferPosition().row)
'split-left': @splitLeft
'split-right': @splitRight
'split-up': @splitUp
@@ -681,6 +682,9 @@ class Editor extends View
foldSelection: -> @getSelection().fold()
unfoldRow: (row) ->
@renderer.largestFoldForBufferRow(row)?.destroy()
undo: ->
if ranges = @buffer.undo()
@setSelectedBufferRanges(ranges)