X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpipe.coffee;h=7c97563e4eb1e2028090ad4a35a7b6e7fa1547ad;hb=8344ff72ee313e913d4a3a64e02463e427b42a69;hp=3781a56ee719479af896dd1939568251a6478967;hpb=f312e36dccb4e9e0544a9d6ad5270bbaad76be7f;p=atom-ax-pipe.git diff --git a/lib/pipe.coffee b/lib/pipe.coffee index 3781a56..7c97563 100644 --- a/lib/pipe.coffee +++ b/lib/pipe.coffee @@ -6,7 +6,7 @@ history = [] module.exports = activate: -> - atom.workspaceView.command 'pipe:run', => @run() + atom.commands.add 'atom-workspace', "pipe:run", => @run() run: -> editor = atom.workspace.getActiveEditor() @@ -28,12 +28,10 @@ module.exports = 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