Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for pickers to return a single result per file #3351

Open
echo-bravo-yahoo opened this issue Nov 1, 2024 · 0 comments
Open

Option for pickers to return a single result per file #3351

echo-bravo-yahoo opened this issue Nov 1, 2024 · 0 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@echo-bravo-yahoo
Copy link

echo-bravo-yahoo commented Nov 1, 2024

Is your feature request related to a problem? Please describe.
Often, I'd like to locate a reference/token/concept in a code-base and am only looking for file granularity. Because I'm searching file contents, I use :Telescope live_grep, but often, the sort algorithm puts 10's of entries from the same file in a row, making it difficult to browse usages in various files. I'm not picky about which usage from a file is displayed (first might be fastest but will usually just be imports, last might be slower, but more likely to be real usage); either seem usable.

Describe the solution you'd like
An option for pickers like {max_results_per_file} (number).

Describe alternatives you've considered
I have not explored other alternatives, and would be happy to hear any way these sorts of workflows can be supported with existing opts/commands.

@echo-bravo-yahoo echo-bravo-yahoo added the enhancement Enhancement to performance, inner workings or existent features label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

1 participant