             ref              = {"search"}
             actions          = {@actions(name)}
             search           = {@props.search}
+            selected         = {@get_log().get(@state.cursor_index)}
             increment_cursor = {@increment_cursor}
             decrement_cursor = {@decrement_cursor}
             reset_cursor     = {@reset_cursor}


    render_log_entries: ->
        <WindowedList
            overscan_row_count = {10}
            estimated_row_size={20}
            row_count={@get_log().size + 1}

LogSearch = rclass
    displayName : 'ProjectLog-LogSearch'

    componentWillMount: ->
        @on_change = underscore.debounce(@on_change, 300)

    propTypes :
        search           : rtypes.string
        actions          : rtypes.object.isRequired
        selected         : rtypes.immutable.Map
        increment_cursor : rtypes.func.isRequired
        decrement_cursor : rtypes.func.isRequired
        reset_cursor     : rtypes.func.isRequired

    open_selected: (value, info) ->
        e = @props.selected?.get('event')
        if not e?
            return
        e = e.toJS()
        switch e.event
            when 'open'
                target = e.filename
