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

Limit the total amount of results #49

Closed
daver32 opened this issue Aug 31, 2023 · 2 comments · Fixed by #50
Closed

Limit the total amount of results #49

daver32 opened this issue Aug 31, 2023 · 2 comments · Fixed by #50

Comments

@daver32
Copy link

daver32 commented Aug 31, 2023

Hello,

it would be nice if there was a way to configure a hard limit on the amount of results returned. I think it would be the most versatile option for performance tuning. There are multiple params that rg accepts to set limits, but they all have their drawbacks.

It seems that the only way to achieve this is to terminate rg after it has returned the max amount of results. I can make a PR if that's welcome.

@lukas-reineke
Copy link
Owner

It's a good point, does #50 work for you?

@daver32
Copy link
Author

daver32 commented Aug 31, 2023

Yeah, works well, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants