   confirm: =>
     project =
       title: @editor.val()
-      paths: [atom.project?.getPath()]
+      paths: atom.project.getPaths()
 
     @projectManager.addProject(project) if project.title
     @hide() if project.title

        @div =>
          @input outlet:'editor', class:'native-key-bindings', placeholderText: 'Project title'
        @div =>
          @span 'Path: '
          @span class: 'text-highlight', atom.project?.getPath()

  initialize: ->
    @editor.on 'core:confirm', @confirm

  show: =>
    @panel ?= atom.workspace.addModalPanel(item: this)
    @panel.show()

    firstPath = atom.project.getPaths()[0]
    basename = path.basename(firstPath)

    @editor.val(basename)
    @editor.focus()
    @editor.select()
