Skip to content

Categories: Allow selecting only torrents with *exact* category match #23822

@mateon1

Description

@mateon1

Suggestion

Implement a way to display only torrents with an exact category match (i.e. without subcategories)

Possibility 1:
Implement a virtual <root> item in each subcategory, picking which only shows torrents with an exact category match.

Possibility 2:
Change the category sidebar into a multiselect. The torrent list is filtered to exact category matches summed across the multiselection. Implement the usual keybinds for multiselection like Ctrl-click/space for adding and removing single items and Shift for ranges.
For ease of selecting whole subcategories, change selection behavior based on clicking on the category text (single item) vs icon (whole subtree)

Use case

With the enforced subcategories change, it's no longer possible to easily access just the torrents that sit at the root of a category. Implementing this would allow selecting both whole categories and exact category matches, giving best of both worlds of the old subcategory and non-subcategory behavior.

Implementing this via the multiselect method would be more flexible (and perhaps the code could be reused to make statuses and tags multiselections as well), but probably harder to implement.
Adding a virtual item to each category with subcategories would be easier, but slightly messier in the UI, and not as flexible, and should probably be gated behind an option.
Either would be an improvement for usability.

Extra info/examples/attachments

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions