Add grouping by file to "live_grep" picker
Hi there, huge thanks for all your work on this project!
Is your feature request related to a problem? Please describe.
I'd love to see grouping of results when using live_grep. This would come with a few advantages
- remove noise of repeating file names
- make it easier to distinguish files "at a glance"
- create more horizontal space for grep results
Example in VS Code
Describe the solution you'd like
An option to display results, grouped by file.
When enabled: For each file containing a match, a heading is displayed. The heading cannot be selected/highlighted and only functions as an annotation. For each result, the position of the match, along with the highlighted matched string is shown.
Before
After
I think this would be a great enhancement for "live_grep" and "grep_string".
That style of grouping results is also used to great effect, for example, by the vertico emacs package:

would be so awesome
I think this extension has something like it https://github.com/fdschmidt93/telescope-egrepify.nvim
I also think it'd be easier to make a new picker than to augment live_grep like it's been done with egrepify and live-grep-args. But I don't think there's any interest between the maintainers to add more builtin pickers.
I think this extension has something like it https://github.com/fdschmidt93/telescope-egrepify.nvim
I also think it'd be easier to make a new picker than to augment
live_greplike it's been done withegrepifyandlive-grep-args. But I don't think there's any interest between the maintainers to add more builtin pickers.
tested this extension, its like that, but i think this extension is still buggy
EDIT:
egrepify fixed all bugs that i pointed and now its super awesome, should be telescope default (+1 for egrepify)