New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History: search #11084
Merged
Merged
History: search #11084
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
97ac8a5
filemanagerbookinfo: add findInProps()
hius07 2ede53e
filemanagerfilesearcher: use findInProps()
hius07 f5c5270
filemanagerhistory: add Search
hius07 3e54f1d
dispatcher: add History search
hius07 808868a
filemanagerfilesearcher: naming
hius07 d65299d
filemanagerbookinfo: naming
hius07 d2afe5b
filemanagerhistory: naming
hius07 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
The whole thing was a bit hard to review because of the choice of these variable names.
You choose
self.filter_text
because we already have aself.filter
(not fond of "filter" when reading it, but ok, might be just my French influence).Or may be its just "text" that reads usually as something we will display, not that we will search. You use "keywords" elsewhere, may be
filter_keywords
would sound better and consistent (even if keywords sounds like its multiple keywords and not a single string).You pass them in a
match_table
(again, no real need to put "table" in its name:)), that you could have namedfilter_table
orfiltering_info
.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.
This new search inherits from old
koreader/frontend/apps/filemanager/filemanagerfilesearcher.lua
Lines 129 to 130 in 2e2ca76
and
koreader/frontend/apps/reader/modules/readerbookmark.lua
Lines 1118 to 1124 in 2e2ca76
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.
We can polish them all for consistency.
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.
As you feel (you're the code owner of all this :) and if it doesn't bug anybody else, fine with me.)
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 haven't had a chance to read it yet. You could always name it filter_str(ing) if I understand the complaint correctly?