         newFile = FSHelper.createFileFromPath "#{parent.path}/#{name}", yes
         @getDelegate().openFile newFile, contents
 
-        if closeAfter
-          @utils.defer =>
-            tabView.removePane_ tabView.getActivePane()
-            {ace} = tabView.getActivePane().getOptions().aceView
-            ace.on 'ace.ready', ->
-              ace.editor.moveCursorTo oldCursorPosition.row, oldCursorPosition.column
 
     , { inputDefaultValue: file.name }
 

      id         : 13
      parentId   : null
      callback   : =>
        @openSaveDialog closeAfter: no

  openSaveDialog: (options = {}) ->
    { closeAfter }   = options

    file = @getData()
    KD.utils.showSaveDialog this, (input, finderController, dialog) =>
      [node] = finderController.treeController.selectedNodes
      name   = input.getValue()


    @ace.on "ace.requests.save", (contents) =>
      file = @getData()
      if /localfile:/.test file.path
        @openSaveDialog()
      else
        file.once 'fs.save.started',    @ace.bound 'saveStarted'
        file.once 'fs.save.finished',   @ace.bound 'saveFinished'
