Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Fast scoring doesn't match underscore as path separators on Windows #403

@imaginedbyme

Description

@imaginedbyme

Prerequisites

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

  1. Place a file in nested folders
  2. 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:

  1. mkdir -p Mob/NPC/Human
  2. touch Mob/NPC/Human/Merchant.php
  3. atom .
  4. Ctrl+t
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions