       @confirmed remotes[0]
     else
       @setItems remotes
-      atom.workspaceView.append this
       @focusFilterEditor()
 
   getFilterKey: -> 'name'
+
+  show: ->
+    @panel ?= atom.workspace.addModalPanel(item: this)
+    @panel.show()
+
+  cancelled: -> @hide()
+
+  hide: ->
+    @panel?.hide()
 
   viewForItem: ({name}) ->
     $$ ->

class ListView extends SelectListView
  initialize: (@data, @mode, @setUpstream=false, @tag='') ->
    super
    @addClass 'overlay from-top'
    @parseData()

  parseData: ->

{BufferedProcess} = require 'atom'
{$$, SelectListView} = require 'atom-space-pen-views'

git = require '../git'
OutputView = require './output-view'
