-{CompositeDisposable, TextEditor} = require 'atom'
+{CompositeDisposable} = require 'atom'
 {ScrollView} = require 'atom-space-pen-views'
 path = require 'path'
 fs = require 'fs-plus'

      @searchCount.text "#{nPaths} paths searched..."

    @disposables.add atom.workspace.onDidChangeActivePaneItem (item) =>
      if item instanceof TextEditor and @model.scope is 'active'
        @model.search()

    @disposables.add atom.workspace.onDidAddTextEditor ({textEditor}) =>

    @disposables.add pane.observeFlexScale (flexScale) =>
      @savePaneFlex(flexScale)

    @disposables.add @model.onDidChangeSearchScope @setScopeButtonState
    @disposables.add @model.onDidStartSearch @startLoading
    @disposables.add @model.onDidFinishSearch @stopLoading
