Skip to content

Conversation

@bcc32
Copy link
Contributor

@bcc32 bcc32 commented Nov 21, 2023

This fixes an issue in counsel-rg and related commands where, if the user quickly types some string that does not have any grep results, and the search takes a long time, then the candidates list will say "1 more chars" while ripgrep is already running and won't be updated until ripgrep exits.

This change also has the following side-effect, which may or may not be desired: when the user is typing a query string, if the old query string already had some matches, ivy would continue to display them until rg produced results for the new query string. With this change, however, ivy immediately clears the results list when the new rg process is spawned.

Closes #3029

This fixes an issue in counsel-rg and related commands where, if the
user quickly types some string that does not have any grep results,
and the search takes a long time, then the candidates list will say "1
more chars" while ripgrep is already running and won't be updated
until ripgrep exits.
@bcc32 bcc32 force-pushed the fix-stale-more-chars branch from 375a055 to 81b0655 Compare September 19, 2024 20:19
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 this pull request may close these issues.

counsel-rg displays "1 more chars" even when rg has already started

1 participant