Add basic support for visual marks < and >
Only works with range '<,'>. If there are multiple selections, run the command for each one. Closes #31.
This commit is contained in:
parent
3a104fe061
commit
1b8f6238c2
5 changed files with 84 additions and 27 deletions
|
|
@ -60,4 +60,13 @@ class ExState
|
|||
@clearOpStack()
|
||||
@emitter.emit('processed-op-stack')
|
||||
|
||||
# Returns all non-empty selections
|
||||
getSelections: ->
|
||||
filtered = {}
|
||||
for id, selection of @editor.getSelections()
|
||||
unless selection.isEmpty()
|
||||
filtered[id] = selection
|
||||
|
||||
return filtered
|
||||
|
||||
module.exports = ExState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue