Closed ShaopengLin closed 3 weeks ago
@ShaopengLin I guess this is the next one to complete the work on the new searchbar?
@kelson42 This is the next change.
@veloman-yunkan Depending on how #1230 discussion goes we can combine them here.
@veloman-yunkan Depending on how #1230 discussion goes we can combine them here.
@ShaopengLin This PR is about Multi-ZIM search which has nothing to do with #1230. Please provide a bugfix for #1230 as a separate PR.
@veloman-yunkan The code ios ready for review.
Before looking at the code I tested the new feature and here is my feedback:
Fixes (part of) #413
@veloman-yunkan Kelson decided to merge the two together back here https://github.com/kiwix/kiwix-desktop/issues/413#issuecomment-2283072087. What we have here isn't true multi-Zim, since we can only search one zim at a time.
That particular problem has been there since the search bar introduction. Searching also doesn't work on blank tabs, which I believe was mentioned in some issues but not sure where. Likely need to do this fix separately.
Sure I can sort it. Currently, it's ordered in the same way it appears in the Local Files
library.
I will investigate and re-commit.
One problem I see is there isn't a strong correlation for users to think library tab filters are applied to multi-zim. It can be hard to comprehend and create bad UX. Adding filters will likely need to be done within multi-zim.
- That particular problem has been there since the search bar introduction. Searching also doesn't work on blank tabs, which I believe was mentioned in some issues but not sure where. Likely need to do this fix separately.
Then it made sense because search was supposed to work only for the current book and there was no current book in the library view. Now that you can select the book to search in via dedicated UI such behavior is no longer justified.
@veloman-yunkan Kelson decided to merge the two together back here #413 (comment). What we have here isn't true multi-Zim, since we can only search one zim at a time.
@kelson42 We should mark this PR for #315 instead if we would like to keep that Issue.
@kelson42 We should mark this PR for #315 instead if we would like to keep that Issue.
Sorry but I'm really lost now about what fixes what. As long as the issues are implemented at the end, I'm fine with it.
@veloman-yunkan
I changed the title of this PR. Can we also rename the button from "Multi-Zim search" to "Search Options"?
@veloman-yunkan
I just realized the shortcut I gave search options is supposed to be used by #42. Let me change it to another one.
Fixes (part of) #315
Relies on #1189
Changes: