 ProjectSearchOutputHeading = rclass
 
     propTypes :
-        path         : rtypes.array
-        show_command : rtypes.bool
-        command      : rtypes.string
-        user_input   : rtypes.string
+        most_recent_path   : rtypes.string.isRequired
+        command            : rtypes.string.isRequired
+        most_recent_search : rtypes.string.isRequired
+        search_results     : rtypes.array
+
+    getInitialState : ->
+        info_visible : false
 
     output_path : ->
-        path = @props.path.join("/")
-        if path == ""
+        if @props.most_recent_path == ""
             return <Icon name="home" />
-        return "/" + path
-
-    output_command : ->
+        return "/" + @props.most_recent_path
+
+    change_info_visible : ->
+        @setState(info_visible : not @state.info_visible)
+
+    get_info : ->
         output_command_styles =
             backgroundColor : 'white'
             fontFamily      : 'monospace'
             fontSize        : '10pt'
             color           : '#888'
 
-        if @props.show_command
-            <span style={output_command_styles}>
-                (search command: '{@props.command}')
-            </span>
-
-    render : ->
-
+        if @state.info_visible
+            <div>
+                <ul>
+                    <li>
+                        Search command: <span style={output_command_styles}>'{@props.command}'</span>
+                    </li>
+                    <li>
+                        Number of results: {@props.search_error ? @props.search_results?.length ? <Loading />}
+                    </li>
+                </ul>
+            </div>
+
+    render : ->
         <div>
             <span style={color:'#666'}>
                 <a href="#project-file-listing">Navigate to a different folder</a> to search in it.
             </span>
 
             <h4>
-                Results of searching in {@output_path()} for "{@props.user_input}"
+                Results of searching in {@output_path()} for
+                "{@props.most_recent_search}" <Button bsStyle='info' bsSize='xsmall' onClick={@change_info_visible}>
+                <Icon name='info-circle' /></Button>
             </h4>
 
-            {@output_command()}
+            {@get_info()}
         </div>
 
 


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

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

            err_on_exit     : true
            path            : @props.current_path.join("/") # expects a string
            cb              : (err, output) =>
                @process_results(err, output, max_results, max_output)


    process_results : (err, output, max_results, max_output) ->

        if (err and not output?) or (output? and not output.stdout?)
            project_store.getActions(@props.project_id, flux).setTo(search_error : err)
            return

        results = output.stdout.split('\n')
        too_many_results = output.stdout.length >= max_output or results.length > max_results or err
        num_results = 0
        search_results = []
        for line in results
