Skip to content

Feature: Remember search filters between searches (option) - #24696

Open
rorybot wants to merge 3 commits into
qbittorrent:masterfrom
rorybot:feature/remember-search-filters
Open

Feature: Remember search filters between searches (option)#24696
rorybot wants to merge 3 commits into
qbittorrent:masterfrom
rorybot:feature/remember-search-filters

Conversation

@rorybot

@rorybot rorybot commented Jul 16, 2026

Copy link
Copy Markdown

👀 image

😲 image

Resolves: #8042 / #20212... this has been requested as far back as #2559 and its lack of implementation by anyone annoyed me!

Description

Adds an opt-in "Remember filters" checkbox to the Search tab (both the Qt GUI and WebUI). When enabled, the seeds and size filter values (and their units) are persisted and restored on new searches, instead of always resetting to the hardcoded defaults.

  • Qt GUI: new checkbox in SearchJobWidget, backed by SettingValue-stored filter values.
  • WebUI: new checkbox in the search view, backed by client data keys (search_remember_filters, search_min_seeds, etc.).

Test plan

  • Enable "Remember filters" in the Qt GUI, change seeds/size filters, open a new search tab — values persist.
  • Same for WebUI: enable the checkbox, change filters, reload the page / open a new tab — values persist.
  • Confirm filters reset to defaults when "Remember filters" is left unchecked.
  • Confirm changing only the size unit (with size values at 0) is also remembered.

Misc

Happy to take a steer on styling, placement, etc. Some people may want per-filter remembering, rather than all of them, but I think this solves 80% of cases. It does for me at least.

rorybot and others added 3 commits July 15, 2026 19:23
The search filter row lets you narrow results by minimum/maximum
seeds and size, but those values reset to their defaults with every
new search tab, so recurring filters (e.g. "at least 5 seeds") have
to be re-entered each time.

Add a "Remember filters" checkbox to the search filter row. When
ticked, the current seeds and size filter values (including size
units) are saved and pre-filled into every new search tab; when
unticked, behaviour is unchanged. The stored values and the checkbox
state persist across sessions, following the same SettingValue
pattern already used for the "Search in" name-filtering mode.

Closes qbittorrent#8042

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015FE31f3czMACwmRDUFchDM
Mirror the desktop GUI "Remember filters" feature in the Web
interface. Previously the seeds and size search filters reset to
their defaults for every new search tab (resetFilters()), while
only the "Search in" mode persisted via ClientData.

Add a "Remember filters" checkbox to the search filter row. When
ticked, the seeds/size filter values (including size units) are
stored via ClientData and used to seed new search tabs; when
unticked, behaviour is unchanged. The stored values and checkbox
state persist across sessions, following the same ClientData
pattern already used for "search_in_filter".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015FE31f3czMACwmRDUFchDM
The min/max size unit dropdowns were wired to a short-circuiting
handler that skipped saving whenever both size inputs were 0,
causing the unit to silently revert on tab switch or reload when
"Remember filters" was enabled. Wire them to
searchSizeFilterChanged directly, matching the Qt widget's
behavior.
@rorybot
rorybot force-pushed the feature/remember-search-filters branch from 35dace8 to 27ddb22 Compare July 16, 2026 01:38
@rorybot
rorybot marked this pull request as ready for review July 16, 2026 01:39
@rorybot rorybot changed the title Feature/remember search filters Feature: Remember search filters between searches Jul 16, 2026
@rorybot rorybot changed the title Feature: Remember search filters between searches Feature: Remember search filters between searches (option) Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting default search parameters/filters

1 participant