Code search : just give one result per occurrence + occurrence count (instead of line numbers)

Related products: Software Factory

Code search returns each occurrence of the search term as a result, showing 23 results for two templates that only differ in the line numbers. Clicking one of the results does often show the template, but does not jump to the line number that is mentioned.

Often I only need to know the templates (or other objects) that contain the search term; as ‘code search’ does not allow editing or generating code without opening it in an editor, I have to open the underlying object anyway.

For me it would be handy to have a single line per object result, and instead of a line number, a count of the number of occurrences.

I imagine the change would be minimal, only involving a group by and a count.

I would like to start with only the template names. With the option to expand to showing each line number, just like now. Perhaps in a tree view.