Commit Graph

490 Commits

Author SHA1 Message Date
01872e37d5 Add missing paranthesis
Not sure how these slipped through.
2021-06-12 22:51:22 +02:00
248bfb96fe shared: LooksQuery: init tokensMask with 0 to be sure 2021-06-12 22:48:59 +02:00
414d53e59a shared: create.sql: Fix format
The qt sqlite3 driver only accepts a single statement
per exec().

We can't split by ; due to the trigger statements.

Thus, the pragmatic and dirty solution is to simply
put a query per line.
2021-06-12 17:29:13 +02:00
604d45afb2 shared: common: Remove redundant qDebug() 2021-06-12 17:24:47 +02:00
d0ebde1f64 Rename qss.pro to looqs.pro 2021-06-12 15:14:10 +02:00
1c0d49e5eb cli: set target to 'looqs' 2021-06-12 15:08:33 +02:00
aac027fa16 gui.pro: Change target to looqs-gui 2021-06-12 15:06:41 +02:00
e97551be97 Rename all symbols to new project name 2021-06-12 14:59:58 +02:00
645903ed6b README: Rename project from 'qss' to 'looqs' 2021-06-12 14:57:26 +02:00
576b884574 mainwindow: warn if deleted files in search results 2021-03-27 18:18:19 +01:00
9ced0ec742 mainwindow: add right click menu to preview labels 2021-03-27 17:58:38 +01:00
e88d0e57b2 shared: qssquery: Fix sqlerror if sort condition comes last
If we had something like c:(test) sort:(mtime, desc), then
we would run into an sql error eventually, since we
would have added an implicit AND token before the sort
condition. This is wrong, as a sort is not a filter.

So, as a quick hack to fix this, just remove a preceeding
boolean (as dirty as it may be, but it does the job for now).
2021-03-07 22:54:24 +01:00
ee4fe51a77 shared: sqlitesearch: Remove subquery for content search
The subquery only works for boolean retrieval, its
ordering is irrelevant. Thus, use INNER JOIN instead
and order by rank by default.
2021-03-07 22:27:48 +01:00
e225fdad21 gui: pdfworker: Explicitly unlock mutex, don't wait for destructor 2021-03-07 22:27:27 +01:00
d3fe08b64b clicklabel: Add right button click signal 2021-03-07 22:26:59 +01:00
3fd4e47196 mainwindow: set window title 2021-03-07 21:09:38 +01:00
09aaf1da04 mainwindow: pdfPreviewReceived(): Don't capture whole preview object in lambda 2021-03-05 21:24:49 +01:00
64b87dd595 shared: qssquery: checkParanthesis(): Ignore paranthesis in quotes
Fixes #12
2020-12-19 12:52:40 +01:00
33b145e6d2 shared: sqlitesearch: Order by rank by default for content search
Making ranked results the default makes (obviously) more sense for
content search.
2020-12-19 12:42:28 +01:00
0dc126da7d shared: sqlitesearch: reformat - no functional change 2020-12-19 12:42:11 +01:00
a1fbf35cde CommandDelete: Rework deletion logic
Allow deleting files from index which still exist
on the fileystem without passing their path to "qss delete".

Thus: "qss delete --deleted" deletes all files which
don't exist anymore.

Also, fix some bugs in offset calculation.
2020-08-30 18:16:08 +02:00
30c077ad6d Update README.md: Minor improvements 2020-08-24 22:52:52 +02:00
ae29b628dd Update 'README.md' 2020-08-24 22:18:49 +02:00
9990ad7895 gui: Clarify what 'Results' means in statusbar 2020-08-24 22:08:31 +02:00
779248a6a6 Update README: Document goals, minor improvements 2020-08-24 21:50:39 +02:00
ef78e74cdd Detect first run and initialize database and config
Relates to #1
2020-08-24 21:36:45 +02:00
8d6678009a sqlitedbservice: provide error message with more context 2020-08-24 21:36:19 +02:00
7c1e12d589 Ship database creation script as embedded resource 2020-08-24 21:33:56 +02:00
8b298fb85b gui: move page switcher next to scale 2020-06-06 23:35:00 +02:00
a46ecf9bff gui: disable searchbar when search is running
avoids waiting in the gui thread. does not try to cancel
the QFuture that actually cannot be cancelled anyway.

sidesteps a strange bug which rethrows already caught exception.
2020-06-06 23:18:33 +02:00
2b97f4a737 fixed: missing return value for some command handlers 2020-05-24 15:37:47 +02:00
8de07b703c Add Common::databasePath which also allows overriding it 2020-05-24 15:36:27 +02:00
13fb901044 added Common namespace. cli: use settings instead of env for db path 2020-05-23 22:52:42 +02:00
277d466a45 link with -lquazip5 instead -lquazip so it works on ubuntu... 2020-05-01 11:48:31 +02:00
d5d2881230 README: added ubuntu build instructions 2020-04-28 16:59:42 +02:00
ff0a4ecfbe list command current state 2019-09-22 16:13:13 +02:00
de04264eb5 pdfworker: don't use deprecated search overload 2019-08-26 09:41:03 +02:00
a979eb1f51 remove max previewimage memory usage 2019-08-26 09:35:39 +02:00
fa8e351859 paging for pdfpreviews 2019-08-26 09:20:21 +02:00
140128e405 updated TODO 2019-08-25 16:56:31 +02:00
f64362ac63 cli: search: implement -r, cleanup of options that don't belong there 2019-08-19 21:09:03 +02:00
014a31fa3c gui: fix passing args to pdfviewer (paths with spaces work now) 2019-08-19 20:02:28 +02:00
bdf235f21b pdf preview: proper highlighting for quoted (inside ") queries 2019-08-19 19:43:05 +02:00
afba31177c updated TODO 2019-08-18 23:26:06 +02:00
22bcc888b9 new future: highlight searched words in pdf preview 2019-08-18 23:23:11 +02:00
cff481a57e Refactor search queries: Introduced QSSQuery
Purpose is to seperate certain logic from SQLite and generalize it more.
Even though we only have Sqlite atm, in general the database layers
must be stupid as possible, while QSSQuery should do most of the hard work.

Fixes in Tokenizer logic.
Switched to C++17.
2019-08-18 00:25:21 +02:00
05a5bac22f mainwindow: show size of files 2019-08-18 00:23:42 +02:00
5e983049f5 mainwindow: wait till search is completed before launching new one 2019-08-12 22:59:05 +02:00
0528e9067a pdfworker: Renderer copy constructor missed max mem field 2019-08-12 10:26:16 +02:00
4a8d994358 sqlitesearch: improve tokenizer and fix sort handling 2019-05-04 20:40:43 +02:00