mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 00:52:29 +03:00
Add ability to specify rowCount to selectUp and selectDown()
This commit is contained in:
parent
166faf1af2
commit
70925263f7
@ -1188,12 +1188,12 @@ class EditSession
|
||||
@expandSelectionsBackward (selection) => selection.selectLeft()
|
||||
|
||||
# Public: Selects all the text one position above all local cursors.
|
||||
selectUp: ->
|
||||
@expandSelectionsBackward (selection) => selection.selectUp()
|
||||
selectUp: (rowCount) ->
|
||||
@expandSelectionsBackward (selection) => selection.selectUp(rowCount)
|
||||
|
||||
# Public: Selects all the text one position below all local cursors.
|
||||
selectDown: ->
|
||||
@expandSelectionsForward (selection) => selection.selectDown()
|
||||
selectDown: (rowCount) ->
|
||||
@expandSelectionsForward (selection) => selection.selectDown(rowCount)
|
||||
|
||||
# Public: Selects all the text from all local cursors to the top of the
|
||||
# buffer.
|
||||
|
@ -182,12 +182,12 @@ class Selection
|
||||
@modifySelection => @cursor.moveLeft()
|
||||
|
||||
# Public: Selects all the text one position above the cursor.
|
||||
selectUp: ->
|
||||
@modifySelection => @cursor.moveUp()
|
||||
selectUp: (rowCount) ->
|
||||
@modifySelection => @cursor.moveUp(rowCount)
|
||||
|
||||
# Public: Selects all the text one position below the cursor.
|
||||
selectDown: ->
|
||||
@modifySelection => @cursor.moveDown()
|
||||
selectDown: (rowCount) ->
|
||||
@modifySelection => @cursor.moveDown(rowCount)
|
||||
|
||||
# Public: Selects all the text from the current cursor position to the top of
|
||||
# the buffer.
|
||||
|
Loading…
Reference in New Issue
Block a user