-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Add developer option for find and replace #17897
base: main
Are you sure you want to change the base?
Conversation
Important Maintainers: This PR contains Strings changes
|
377154c
to
b359ed0
Compare
b359ed0
to
3e52c07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, since it's a dev option, all are optional
AnkiDroid/src/main/java/com/ichi2/anki/browser/FindAndReplaceDialogFragment.kt
Outdated
Show resolved
Hide resolved
Note: I also changed the parameters names to match upstream as I think they are more expressive. The matchCase also follows upstream's default value, I think it's the job of the ui/tests to properly call the method. See: https://github.com/ankitects/anki/blob/64ca90934bc26ddf7125913abc9dd9de8cb30c2b/pylib/anki/collection.py#L715
…eam methods These two methods are used for the find and replace browser functionality.
3e52c07
to
71b37b9
Compare
Visually: still an approve. Comments:
|
71b37b9
to
d69222d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not here to naysay, and it's a developer option. Huge improvement!
EDIT: Unit test failure
Added as a developer option for now. Provides a dialog that follows the desktop ui to allow the user to bulk change their notes. Ui follows the desktop code: - offers all options that desktop offers - shows feedback when done with the count of notes changed - the operation is undoable(from DeckPicker) If enabled, this option will always(no selection/multi select mode) be present in the menu.
d69222d
to
216dfc9
Compare
Fixed the unit tests and also applied the patch! |
Purpose / Description
Enables desktop's find and replace menu option(implemented as a dialog). The line count is big but it's mostly tests and code verbosity, the actual feature is small. Some notes:
How it looks:
find_replace.mp4
Fixes
How Has This Been Tested?
Manually tested the new dialog in various scenarios. Added some tests. Ran all tests.
Checklist