X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fpipe.coffee;h=c9de02787c397b6a6ee0879929876b8f35a425a3;hb=refs%2Fheads%2Fupdate-pipe.coffee;hp=97ada8a8b67092cfa294a493be4fdc635a32694f;hpb=79868f6406730df39975f73641a41a0560fd487e;p=atom-ax-pipe.git diff --git a/lib/pipe.coffee b/lib/pipe.coffee index 97ada8a..c9de027 100644 --- a/lib/pipe.coffee +++ b/lib/pipe.coffee @@ -9,10 +9,11 @@ module.exports = atom.commands.add 'atom-workspace', "pipe:run", => @run() run: -> - editor = atom.workspace.getActiveEditor() - view = atom.workspaceView.getActiveView() + editor = atom.workspace.getActiveTextEditor() return if not editor? + view = atom.views.getView(atom.workspace) + new CommandView history, (commandString) -> if not commandString view.focus()