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

Group mods by mod name #143

Closed Adda0 closed 8 months ago

Adda0 commented 8 months ago

This PR lists the mods grouped by mod name (the main mod folder name):

automation/Automate/[CP] Automate   (/manifest.json)
automation/Automate/[PFM] Automate   (/manifest.json)
automation/Automate/[JA] Automate   (/manifest.json)

The folder with manifest.json is the mod "component", the folder grouping multiple mod "components" is the whole mod group.

Grouping by mod author is turned off, as I found it less useful, considering there is already a column for mod authors with filter options.

If grouping by default is not desirable, I think adding config options for turning grouping on and off plus possibly changing how mods are grouped (see TODO in the code changes) would be an option, too.

Tested on Linux, not tested on Windows and MacOS.

Feature preview: 2023-12-23_09-46

Floogen commented 8 months ago

I love the idea! Mod grouping is something that has been requested before and was on my to-do list for a while.

I am in the process of getting the styles added for the group headers, along with the setting to pick a grouping style (currently None and Folder, but likely will add Tag in a separate PR per #140).

Once I get the aforementioned changes pushed, I will merge this over.

Adda0 commented 8 months ago

That sounds amazing.

Once this PR is merged, I will submit other PRs depending on the grouping for features such as enabling/disabling the whole mod (all mod components; the naming convention for a single folder with a manifest file is a bit unfortunate here), showing only the mod components of the whole mod for the selected component, filtering based on the group name (the whole mod name) as well as the mod components names, filtering ignoring whitespaces (since mod authors seem to enjoy naming the mod components with different whitespace composition than the mod folders), and other features.

Floogen commented 8 months ago

I have implemented the previously mentioned changes (along with mod group search filter support).

If it looks good to you, I will merge it over.