Skip to content

fix: handle backspacing correctly in fzy search #798

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

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

cseickel
Copy link
Contributor

@cseickel cseickel commented Mar 11, 2023

fixes #794

This fixes problems related to making corrections in fzy search mode. Previously, it only worked correctly going forward,
as in adding characters without making corrections. It now works consistently with corrections because:

  • The files found using fd/find are no longer cached at all. Another way to fix this would be to track the search term and reset the cache when the term gets shorter. I don't think that is worth the complication though.
  • I fixed a bug where going to an empty input would reset your search settings for the session, sending you back to the old fuzzy search mode.

@cseickel cseickel enabled auto-merge (squash) March 11, 2023 01:57
@cseickel cseickel disabled auto-merge March 11, 2023 01:57
@cseickel cseickel merged commit cef57e6 into main Mar 11, 2023
@cseickel cseickel linked an issue Mar 11, 2023 that may be closed by this pull request
@cseickel cseickel deleted the fix-fzy-seaaarch-glitches branch July 15, 2023 02:29
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.

Fuzzy search is missing some files
1 participant