         else
           typeClass = 'icon-file-text'
 
-        fileBasename = path.basename(filePath)
-
-        @div fileBasename, class: "primary-line file icon #{typeClass}", 'data-name': fileBasename, 'data-path': projectRelativePath
-        @div projectRelativePath, class: 'secondary-line path no-icon'
+        @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

{$$, SelectListView} = require 'atom-space-pen-views'
{repositoryForPath} = require './helpers'
fs = require 'fs-plus'

module.exports =
class FuzzyFinderView extends SelectListView

    @panel?.destroy()

  viewForItem: ({filePath, projectRelativePath}) ->

    # Style matched characters in search results
    filterQuery = @getFilterQuery()

    $$ ->

      highlighter = (str) =>
        # The match array alternates between unmatched and matched text
        wrapMe = false
        for term in match(str, filterQuery)
          if wrapMe
            @strong term, class: 'matched-chars'
          else if term
            @text term
          wrapMe = !wrapMe

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