]> arthur.barton.de Git - atom-ax-pipe.git/blobdiff - lib/command-view.coffee
Use "atom.workspace.addBottomPanel"
[atom-ax-pipe.git] / lib / command-view.coffee
index 8ac7c49e34a59c90696baab07540892494e05ced..042a048eeb10712021ce5a01a9f93236e744660b 100644 (file)
@@ -1,4 +1,5 @@
-{View, EditorView} = require 'atom'
+{View, TextEditorView} = require 'atom-space-pen-views'
+
 
 module.exports =
 class CommandView extends View
@@ -12,7 +13,7 @@ class CommandView extends View
 
   @content: ->
     @div class: 'pipe-command', =>
-      @subview 'commandLine', new EditorView(
+      @subview 'commandLine', new TextEditorView(
         mini: true
         placeholderText: @samplePlaceholder()
       )
@@ -51,5 +52,5 @@ class CommandView extends View
           if historyPos >= history.length
             cur = @commandLine.getText()
 
-    atom.workspaceView.append(this)
+    atom.workspace.addBottomPanel(item: this)
     @commandLine.focus()