Osmose / advanced-open-file

Open files and folders in Atom easily.
https://atom.io/packages/advanced-open-file
Other
119 stars 20 forks source link

Fuzzy matching child directories #127

Open xh3b4sd opened 7 years ago

xh3b4sd commented 7 years ago

When I have a file /one/two/tree I should be able to find this file by providing ontwtr. This is how I am used to do in e.g. fuzzy finder. Using the fuzzy matching option I am not able to to such searches. Am I missing something?

Osmose commented 7 years ago

Thanks for the report!

The intent for fuzzy matching is only to match against files in the current directory, so it's working as intended. I can see the use case for wanting fuzzy matching against the current directory and it's children, though, even with the fuzzy finder.

The main challenge is that the fuzzy finder already has a delay for indexing the current project to make fuzzy finding useful, and advanced-open-file isn't limited to a project directory like the fuzzy-finder is. We'd have to index on the fly, and probably end up doing smart things like knowing when we've already indexed a child directory.

I'm pretty sure this isn't something I'd work on, but I'd certainly review a PR that provided this feature. And one more open issue in the tracker can't hurt, right? :P