atom / fuzzy-finder

Find and open files quickly
MIT License
276 stars 129 forks source link

Handle correctly similar results from multiple projects #383

Closed rafeca closed 5 years ago

rafeca commented 5 years ago

Requirements

Description of the Change

This PR fixes https://github.com/atom/fuzzy-finder/issues/382 by adding any root that contains a filter result to the list of final results.

Alternate Designs

We could change fuzzy-native to accept an object that contains both the full path of the result (or an id) + the string to use for the matcher (as the standard fuzzy matcher does), but that would require sending a much bigger object to the native side which could slowdown thing (plus the change would be bigger and affect other repos).

Benefits

Fixes https://github.com/atom/fuzzy-finder/issues/382

Possible Drawbacks

None that I can think of.

Applicable Issues

https://github.com/atom/fuzzy-finder/issues/382