Commit Graph

45295 Commits

Author SHA1 Message Date
Kovid Goyal 6e86eb53f3 Fix the progress labels close to 100% 2022-07-06 19:19:52 +05:30
Kovid Goyal 152145e1ad Dont use a timer for indexing progress
This makes things very slow as it requires locking the database ever
second. Instead use the db's event system to deliver indexing progress
changed events.
2022-07-06 19:19:52 +05:30
Kovid Goyal e747fddf0d ... 2022-07-06 19:19:52 +05:30
Kovid Goyal 270ae84b7b ... 2022-07-06 19:19:52 +05:30
Kovid Goyal dc97cffbec Links to open search results 2022-07-06 19:19:52 +05:30
Kovid Goyal 7772400f04 Show only single match when current is an individual match 2022-07-06 19:19:51 +05:30
Kovid Goyal 5991fecb04 Display individual matches in details panel 2022-07-06 19:19:51 +05:30
Kovid Goyal e1e490b66e Add a dedicated icon for FTS 2022-07-06 19:19:51 +05:30
Kovid Goyal b51e85e98e Add a button to launch FTS to the search bar 2022-07-06 19:19:51 +05:30
Kovid Goyal 2ea40e6cef Add basic docs for the new FTS feature 2022-07-06 19:19:51 +05:30
Kovid Goyal 6c755112b4 Fix indexing status not being updated when dialog is hidden and reshown 2022-07-06 19:19:51 +05:30
Kovid Goyal 209b40d601 Handle switching libraries with the fts window open 2022-07-06 19:19:51 +05:30
Kovid Goyal eb3a378006 Show indexing status label 2022-07-06 19:19:51 +05:30
Kovid Goyal 31555eba05 Button to switch back to scan panel results 2022-07-06 19:19:51 +05:30
Kovid Goyal 9fff268150 more work on fts ui 2022-07-06 19:19:51 +05:30
Kovid Goyal 5321c544f0 Use a signal for indexing progress 2022-07-06 19:19:51 +05:30
Kovid Goyal 1fc4dc5604 Start integrating the fts widgets into an overall dialog 2022-07-06 19:19:51 +05:30
Kovid Goyal 772febd578 Limit max length of book info entries 2022-07-06 19:19:51 +05:30
Kovid Goyal 68e90f1ddc ... 2022-07-06 19:19:51 +05:30
Kovid Goyal ba5f3a8c76 Fix scrollbars showing up in book info widget 2022-07-06 19:19:51 +05:30
Kovid Goyal 55e89079d4 Links to show and mark book in the library 2022-07-06 19:19:51 +05:30
Kovid Goyal 6c51e54d53 Allow showing icons in HTMLDisplay 2022-07-06 19:19:50 +05:30
Kovid Goyal 6111955dc6 Clear button should clear results and details panel 2022-07-06 19:19:50 +05:30
Kovid Goyal c93c10f16d No underlined links 2022-07-06 19:19:50 +05:30
Kovid Goyal 7f8eba387f Implement basic books result display 2022-07-06 19:19:50 +05:30
Kovid Goyal c428c6bbc0 Speedup loading of QImage from book cover file 2022-07-06 19:19:50 +05:30
Kovid Goyal 57612b4536 Fix checkbox toggles 2022-07-06 19:19:50 +05:30
Kovid Goyal 96190cd531 And a syntax quick reference card 2022-07-06 19:19:50 +05:30
Kovid Goyal b6f0ff41bf Switch focus to results view when a search starts 2022-07-06 19:19:50 +05:30
Kovid Goyal eba1b4f05e Handle query errors 2022-07-06 19:19:50 +05:30
Kovid Goyal d057f8e238 Show the number of matching books 2022-07-06 19:19:50 +05:30
Kovid Goyal 571e2b695e use single selection mode for fts results 2022-07-06 19:19:50 +05:30
Kovid Goyal 282a9a2b63 Use italic font for book titles 2022-07-06 19:19:50 +05:30
Kovid Goyal 53da2ebd54 Collapse identical (upto spaces) matches from different formats 2022-07-06 19:19:50 +05:30
Kovid Goyal 22596d077a Wire up search type controls 2022-07-06 19:19:50 +05:30
Kovid Goyal 6beefbe100 Wire up the FTS input 2022-07-06 19:19:50 +05:30
Kovid Goyal 1b12b9c79e Basic FTS input UI 2022-07-06 19:19:49 +05:30
Kovid Goyal 6deddaa1d3 Run the FTS search with snippets asynchronously 2022-07-06 19:19:49 +05:30
Kovid Goyal 2bbf8e5824 Avoid FTS overhead when restricting to subset
This is needed because the highlight()/snippet() sqlite functions
are very slow with large text
2022-07-06 19:19:49 +05:30
Kovid Goyal cac2a91df9 Allow FTS searches to not return text
Allows efficiently querying for which books match without th eoverhead
of converting the book text to a python string
2022-07-06 19:19:49 +05:30
Kovid Goyal 0a6dc87fcd ... 2022-07-06 19:19:49 +05:30
Kovid Goyal 013018f105 Start work on UI for FTS results 2022-07-06 19:19:49 +05:30
Kovid Goyal a262ef8449 ... 2022-07-06 19:19:49 +05:30
Kovid Goyal cfce9a559d log undecodeable gif images 2022-07-06 19:19:49 +05:30
Kovid Goyal ec0b86de4b Ensure fts is pre-initialized when re-indexing 2022-07-06 19:19:49 +05:30
Kovid Goyal 04f6ba2b64 ... 2022-07-06 19:19:49 +05:30
Kovid Goyal 0f79dbfb47 Improve wording 2022-07-06 19:19:49 +05:30
Kovid Goyal 03d9c2dbc4 Ignore undecodeable GIFs in MOBI files 2022-07-06 19:19:49 +05:30
Kovid Goyal 6d1f2989d1 A re-index button 2022-07-06 19:19:49 +05:30
Kovid Goyal 34cf27727a Add method to re-index FTS 2022-07-06 19:19:49 +05:30