     classes = ['path']
     classes.push('readme') if fs.isReadmePath(path)
     @li class: classes.join(' '), =>
-      @div class: 'path-details', =>
+      @div outlet: 'pathDetails', 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}) ->
    @on 'mousedown', @onPathSelected
    @previewList.command 'command-panel:collapse-result', =>
      @collapse(true) if @isSelected()
    @previewList.command 'command-panel:expand-result', =>

  setSelected: ->
    @previewList.find('.selected').removeClass('selected')
    @addClass('selected')

  toggle: (animate) ->
    if @hasClass('is-collapsed')
