         checkboxes : rtypes.object
 
     handle_change : (name) ->
-        flux.getActions('project_search').setTo("#{name}": @refs[name].getChecked())
+        project_store.getActions(@props.project_id, flux).setTo("#{name}": @refs[name].getChecked())
 
     input : (name, label) ->
         <Input

        user_input : rtypes.string
        project_id : rtypes.string

    getInitialState : ->
        state : 'search'   # search --> loading --> display


    settings_checkboxes :
        subdirectories : 'Include subdirectories'
        case_sensitive : 'Case sensitive'
        hidden_files   : 'Hidden files (begin with .)'
        show_command   : 'Show command'

    search : (query) ->
        if query.trim() == ''
            return

        @setState(state : 'loading')

        recursive   = @props.subdirectories
        insensitive = not @props.case_sensitive
        hidden      = @props.hidden_files
        max_results = 1000
        max_output  = 110 * max_results  # just in case
        console.log(insensitive)
        if insensitive
            ins = " -i "
        else


    clear_and_focus_input : ->
        @setState(user_input : '')
        @refs.project_search_input.getInputDOMNode().focus()

    clear_button : ->
        <Button onClick={@clear_and_focus_input}>
