Floogen / Stardrop

Stardrop is an open-source, cross-platform mod manager for the game Stardew Valley.
https://floogen.gitbook.io/stardrop/
GNU General Public License v3.0
114 stars 31 forks source link

Ignore whitespaces in filter text search #151

Closed Adda0 closed 8 months ago

Adda0 commented 8 months ago

This PR modifies the filter search function to ignore any spaces in the searched text, as well as the user-given search query.

I noticed that many mods have inconsistent names within a single mod (mod group), especially with different placement of spaces between the folder name (group name) and mod names within the folder. I constantly battle with searching in Stardrop by placing spaces in random places until the search finds the mod I am looking for.

This PR fixes this problem for me entirely. Now, I can search for whatever form of the name I remember and be sure to find the mod I am looking for. And then optionally click on one mod to show the whole mod group (see #150), if necessary.

Example:

Tested on Linux, not tested on MacOS or Windows.

Floogen commented 8 months ago

Merged! Thank you for the pull request.