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

Search returns incorrect results #243

Closed
MrPandir opened this issue Jun 10, 2024 · 3 comments
Closed

Search returns incorrect results #243

MrPandir opened this issue Jun 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@MrPandir
Copy link

Describe the bug

I'm trying to find a py.vim file in a directory that contains 336 files. But the search gives me completely different files that do not include this text

To Reproduce

  1. Open a folder with a lot of files, for me it is /opt/homebrew/Cellar/neovim/0.10.0/share/nvim/runtime/ftplugin
  2. Search for py.vim

Expected behavior

Display only files that contain search text

Screenshot

Screenshot 2024-06-10 at 13 06 30

System information

  • OS: Darwin
  • Version: MacOS 14.4.1
  • Superfile Version: v1.1.3
@MrPandir MrPandir added the bug Something isn't working label Jun 10, 2024
@yorukot
Copy link
Owner

yorukot commented Jun 11, 2024

These are actually using the textdistance.JaroWinklerDistance algorithm, which check for matches and return a rate(0-1). The filepanel then displays the result based on rate.

Are you sure that you have a file named py.vim?

Thanks for your report. btw!

@MrPandir
Copy link
Author

Yes, it really doesn’t exist, I didn’t understand this by searching for superfile.
I would like to have an exact search. Check whether the search text contains a substring in the file name.

I see two solutions to this problem:

  1. Change search: to find substring
  2. Replace search with: Fuzzy file search #115

Probably the second solution will solve many search problems 🤔

@yorukot
Copy link
Owner

yorukot commented Jun 12, 2024

Since the nature is the same as #155, I will close this issue. You can go to #155 to track the latest progress.

@yorukot yorukot closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants