       @show()
 
   entryClicked: (e) ->
-    entry = $(e.currentTarget).view()
+    entry = e.currentTarget
     isRecursive = e.altKey || false
     switch e.originalEvent?.detail ? 1
       when 1

        @openSelectedEntry(false) if entry instanceof FileView
        entry.toggleExpansion(isRecursive) if entry instanceof DirectoryView
      when 2
        if entry.is('.selected.file')
          atom.workspaceView.getActiveView()?.focus()
        else if entry.is('.selected.directory')
          entry.toggleExpansion(isRecursive)

    false

      atom.clipboard.write(pathToCopy)

  entryForPath: (entryPath) ->
    bestMatchEntry = @root
    for entry in @list.element.querySelectorAll('.entry')
      if entry.getPath() is entryPath
        bestMatchEntry = entry
        break
      else if entry.getPath().length > bestMatchEntry.getPath().length and entry.directory?.contains?(entryPath)
        bestMatchEntry = entry

    bestMatchEntry

  selectEntryForPath: (entryPath) ->
    @selectEntry(@entryForPath(entryPath))
