 {$$, SelectListView} = require 'atom-space-pen-views'
 {repositoryForPath} = require './helpers'
 fs = require 'fs-plus'
+{match} = require 'fuzzaldrin'
 
 module.exports =
 class FuzzyFinderView extends SelectListView

    @panel?.destroy()

  viewForItem: ({filePath, projectRelativePath}) ->
    $$ ->
      @li class: 'two-lines', =>
        if (repo = repositoryForPath(filePath))?
          status = repo.getCachedPathStatus(filePath)

        else
          typeClass = 'icon-file-text'

        @div class: "primary-line file icon #{typeClass}", -> highlighter(path.basename(filePath))
        @div class: 'secondary-line path no-icon', -> highlighter(projectRelativePath)

  openPath: (filePath, lineNumber) ->
    if filePath
