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

Allow fuzzy finding for Rails namespaced classes #51

Closed
wants to merge 1 commit into from

Conversation

andyjeffries
Copy link

I'd like to be able to paste in to the Fuzzy Finder something like "My::Namespaced::Class" and have it suggest "my/namespaced/class.rb" in the list of suggestions. The code below works, but I couldn't figure out how to write a coffeescript spec for it (I was able to run the specs, I had a spec I thought may work as a basis copied, but could't figure it out from there - I'm no JS/Atom developer).

If this direct change isn't acceptable, any suggestions on how we could make it a configurable option - "combinations of characters to treat as directory separator" or something?

Any comments, tips? Thanks.

@jeancroy
Copy link
Contributor

Done some work to address this in underlying library fuzzyaldrin, I believe it's cleaner that way.
Also your replacement with forward slash would not have worked on windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants