`Fast` scoring doesn't match underscore as path separators on Windows
imaginedbyme opened this issue · 6 comments
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
(I'm afraid I don't have the version numbers to hand)
When using Fuzzy Finder, I used to be able to just dump my entire class name into it, and it'd split it based on underscores and correctly find the file. For example if my class was Mob_NPC_Human_Merchant
, and I put my class name into the fuzzy finder, it would bring up the file Mob/NPC/Human/Merchant.php
, it stopped working when fast mode was enabled, so I disabled it, and now after the most recent update it doesn't work at all anymore. It's been working correctly for over a year.
Steps to Reproduce
- Place a file in nested folders
- Attempt to fuzzy find the file using underscores instead of slashes
Edit by @rsese to add more detailed repro steps
Using Git Bash on Windows and with Settings > Packages > Fuzzy Finder > Scoring System
set to fast
:
mkdir -p Mob/NPC/Human
touch Mob/NPC/Human/Merchant.php
atom .
- Ctrl+t
- Copy/paste "Mob_NPC_Human_Merchant"
Expected behavior:
It brings up "Mob/NPC/Human/Merchant.php" as a result of your search.
Actual behavior:
It brings up no files at all.
Reproduces how often:
Everytime.
Versions
I'm currently running 1.39.1, it worked before I updated.
Additional Information
None, if this change is intended I understand, but I hope there is some configuration option that lets me go back to how it used to work, else my main reason for using fuzzy find with my project has kinda gone out the window.
Thanks for the report! I think this was addressed in atom/fuzzy-native#6 and that fix should be in 1.39 - this is what I see in 1.39.1 on macOS 10.14 with fast mode enabled:
Did I misunderstand your repro steps? Also, what OS are you running?
What operating system are you on @JulianHQ? I'll test on Windows and see if there's any difference there.
My apologies, I'm running Windows 10
Ahh ok, I can reproduce with 1.39.1 on Windows 10:
@JulianHQ, as @imaginedbyme mentioned, if you really need this functionality for your workflow, you can temporarily set Settings > Packages > Fuzzy Finder > Scoring System
to alternate
.