module.exports =
activate: ->
- atom.workspaceView.command 'pipe:run', => @run()
+ atom.commands.add 'atom-workspace', "pipe:run", => @run()
run: ->
editor = atom.workspace.getActiveEditor()
ranges = editor.getSelectedBufferRanges()
wg = new WaitGroup ->
- editor.commitTransaction()
view.focus()
wg.add(ranges.length)
- editor.beginTransaction()
for range, i in ranges
marker = editor.markBufferRange range, properties
processRange marker, editor, commandString, wg