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

counsel--async-command-1: Immediately update minibuffer after spawning #3030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.
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