   setSelected: ->
     @previewList.find('.selected').removeClass('selected')
     @addClass('selected')
-
-  onPathSelected: (event) =>
-    e = $(event.target)
-    e = e.parent() if e.parent().hasClass 'path'
-    @toggle(true) if e.hasClass 'path'
 
   toggle: (animate) ->
     if @hasClass('is-collapsed')

    classes = ['path']
    classes.push('readme') if fs.isReadmePath(path)
    @li class: classes.join(' '), =>
      @div class: 'path-details', =>
        @span class: 'path-name', path
        @span "(#{operations.length})", class: 'path-match-number'
      @ul outlet: 'matches', class: 'matches', =>

          @subview "operation#{operation.index}", new OperationView({operation, previewList})

  initialize: ({@previewList}) ->
    @pathDetails.on 'mousedown', => @toggle(true)
    @previewList.command 'command-panel:collapse-result', =>
      @collapse(true) if @isSelected()
    @previewList.command 'command-panel:expand-result', =>
