Skip to content

Add a file name filter to the torrent file selection screen#473

Merged
LivingWithHippos merged 4 commits into
LivingWithHippos:masterfrom
ElCruncharino:feat/torrent-file-filter
Jul 11, 2026
Merged

Add a file name filter to the torrent file selection screen#473
LivingWithHippos merged 4 commits into
LivingWithHippos:masterfrom
ElCruncharino:feat/torrent-file-filter

Conversation

@ElCruncharino

Copy link
Copy Markdown
Contributor

Adds a filter field to the file picker shown while adding a torrent. Plain text matches any part of a file name, and * is supported for patterns like *.mkv. Next to it there is a checkbox that selects or deselects all the files currently shown, so *.mkv plus the checkbox selects every mkv file in one go, like suggested in #450.

With an empty filter the folder structure is shown as before. While a filter is active the matching files are shown as a flat list and the folder rows are hidden, since selecting a folder would also pick files that are filtered out.

Closes #450
Closes #462

Adds a filter bar to the file picker shown while adding a torrent.
Plain text matches any part of a file name, and * wildcards are
supported to match by extension, e.g. *.mkv. A new checkbox selects or
deselects all the currently visible files, so *.mkv + checkbox selects
all the mkv files in one go.

Closes LivingWithHippos#450
Closes LivingWithHippos#462
The selection DiffCallback already compares TorrentFileItem.selected,
so submitList alone rebinds the rows whose checkbox state changed. The
extra notifyDataSetChanged forced every row to fully rebind on top of
that, discarding the diffing work.
@LivingWithHippos LivingWithHippos self-requested a review July 9, 2026 14:31
@LivingWithHippos LivingWithHippos merged commit d24a635 into LivingWithHippos:master Jul 11, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants