       @editorContainer.addClass 'hidden-input'
 
     @singleChar = opts.singleChar
-
     @defaultText = opts.defaultText ? ''
 
-    unless atom.workspaceView?
-      # We're in test mode. Don't append to anything, just initialize.
-      @focus()
-      @handleEvents()
-      return
-
-    statusBar = atom.workspaceView.find('.status-bar')
-
-    if statusBar.length > 0
-      @insertBefore(statusBar)
-    else
-      atom.workspace.getActivePane().append(@)
+    # If in test mode, don't append to anything, just initialize.
+    if atom.workspace?
+      atom.workspace.addBottomPanel(item: this, priority: 100)
 
     @focus()
     @handleEvents()

        @subview 'editor', new TextEditorView(mini: true)

  initialize: (@viewModel, opts = {})->
    @editor.setFontSize(atom.config.get('vim-mode.commandModeInputViewFontSize'))

    if opts.class?
      @editorContainer.addClass opts.class



  remove: =>
    @stopHandlingEvents()
    super()
