45287 Commits

Author SHA1 Message Date
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
Kovid Goyal
53ae7d76cf
Ensure inserting into dirtied formats does not fail in triggers 2022-07-06 19:19:49 +05:30
Kovid Goyal
368bba0ac3
Ensure initialization is thread safe 2022-07-06 19:19:49 +05:30
Kovid Goyal
958625f660
Use a fast/slow indexing control since fast indexing is only appropriate when scanning a backlog 2022-07-06 19:19:48 +05:30
Kovid Goyal
7f503018ba
Parallelize db shutdown a bit more 2022-07-06 19:19:48 +05:30
Kovid Goyal
74b218a72a
Make shutting down the fts pool more robust
Fixes a deadlock and gives the worker threads a chance to clean exit
2022-07-06 19:19:48 +05:30
Kovid Goyal
89411a763e
Name the device manager thread 2022-07-06 19:19:48 +05:30
Kovid Goyal
aa66a5e67b
name the updates thread 2022-07-06 19:19:48 +05:30
Kovid Goyal
efc599f328
shutdown stats update timer on close 2022-07-06 19:19:48 +05:30