   autoPreview: null
   autoPreviewOnQueryChange: null
 
-  preventSyncToEditor: false
+  inPreview: false
   ignoreChange: false
   ignoreCursorMove: false
   destroyed: false


  # Return success or fail
  syncToEditor: (editor) ->
    return false if @preventSyncToEditor

    point = editor.getCursorBufferPosition()
    if @provider.boundToSingleFile

      moveAndScroll()

  preview: ->
    return unless item = @items.getSelectedItem()

    @inPreview = true
    @provider.openFileForItem(item).then (editor) =>
      editor.scrollToBufferPosition(item.point, center: true)
      @inPreview = false
      @emitDidPreview({editor, item})

  confirm: ({keepOpen, flash}={}) ->
