feat(new-card-browser): Advanced Search [Dev only] #20071
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose / Description
In this PR, I implement a draft of the 'Advanced Search' functionality for the Card Browser.
As this is development-only functionality, I would ideally like this merged without productionizing the draft functionality. That being said, please heavily review the intent and the existing code.
I plan to productionize this by adding dialog boxes to the provided options, enabling (for example): selection of valid fields in a drop-down list or autocompleting text view.
The main aim of this functionality is to expose Anki's search syntax to users, without them needing to read the manual.
Although we can use chips for a significant portion of common functionality, Anki's functionality is advanced:
fr*nt:text- search all fields matching the wildcarddeck:te*t- a deck search. Not easily representable in the 'deck' chipSo we will provide full text search functionality. Providing explanations, and builders for common functionality will improve discoverability of features, and gives us an opportunity to explain AnkiDroid's features
If this screen passes code reviews, it is intended for various 'small' dialogs to be produced. For example: one which will provide the full list of valid fields to select from.
Fixes
Approach
How Has This Been Tested?
screen-20260111-231015.mp4
Learning
https://docs.ankiweb.net/searching.html
Checklist