877224b6e1
gui: mainwindow: Only trigger preview generation when in tab
...
Indirectly generation would fire when we set combobox index
programitcally. So it's slot should only trigger the generation
when the user is viewing the preview tab
2022-08-23 17:35:52 +02:00
14730ed208
gui: mainwindow: Add vertical scroll option, default to it
...
Seems horizontal mode is too unusual according to multiple
feedback.
Allow choosing this the mode in the settings
2022-08-21 22:57:48 +02:00
fe610d3068
mainwindow: Allow CTRL + mouse wheel to zoom on previews
2022-08-21 18:42:32 +02:00
0c1b57d911
mainwindow: Save/Restore history
2022-08-21 17:48:43 +02:00
2885e40a3a
mainwindow: Add search history. Allow going up/down with arrow keys
2022-08-21 17:47:11 +02:00
47c19d121a
gui: mainwindow: Add CTRL(+Shift+)Tab shortcut to switch between tabs
2022-08-14 20:25:44 +02:00
166c051cfb
gui: mainwindow: Add CTRL+F and CTRL+W shortcuts
...
Add shortcuts to make entering queries more efficient
CTRL+F: Highlights rightmost filter, e. g. c:(word1 word2) would
highlight everything between (), so "word1 word" here. Alternatively,
highlights lone words, so p:(docs) word1, would highlight word1.
CTRL+W: Removes last filter or words.
2022-08-14 20:25:44 +02:00
47d0440ffb
gui: mainwindow: Add checkbox to remove current database
2022-08-14 20:25:44 +02:00
eb58b8f770
gui: Clear previews always on new search results
...
If a first search generates previews and the next one does
not, old entries would still have been visible.
So we just clear them once we get results.
2022-08-06 10:10:45 +02:00
9a70a821bd
gui: PreviewGeneratorPlainText: Show line numbers
...
Generate previews that show the line number and surrounding
lines (like grep -C) for context.
2022-08-06 10:01:24 +02:00
89bf65d9bb
gui: PreviewGeneratorPlaintext: Add MAX_SNIPPETS const, remove redundant loop
2022-08-06 09:35:00 +02:00
00abc6bc1b
gui, shared: Fix and simplify word extraction regexes
...
They did not work for chars like '-', causing errors.
We can actually just extract non-space chars for these cases.
2022-08-06 08:57:39 +02:00
77f5c7e39d
gui: mainwindow: Revert pathsQuery to original behaviour
...
Since 7c5c91e
we wrongly merge lone words for paths queries too.
This creates unintended behaviour.
Fix it by creating a new paths query without merged words, which
restores the original behaviour.
Also, get rid of some redundant calls to createFinalTokens()
2022-07-30 10:01:51 +02:00
7c5c91ef10
gui: search: Avoid double results + minor improvements
...
Avoid double results in search by distinguishing whether
a filter was explicitly given. Previously, we could not
discern this.
Furthermore, if a content search is given, lone words will be
considered path searches. If a path search is given, we consider
lone words implicit content search filters. This simplifies
queries for the user
2022-07-29 10:17:04 +02:00
7fa266e5e8
gui: main: Execute migrations. Show migration progress dialog
...
We don't do silent upgrades anymore because they might take considerable
time.
2022-07-28 13:43:02 +02:00
43a0f08579
gui: PreviewGeneratorPlainText: Fix case of empty preview when word found on pos 0
2022-07-24 12:25:38 +02:00
1aa5ae0ccc
gui: Introduce PreviewGeneratorOdt for basic previews of .odt files
2022-07-24 11:43:00 +02:00
20d42a66a6
gui: Begin PreviewResultOdt
2022-07-24 11:41:25 +02:00
cba4df3eac
gui: previews: Add label with file path below every preview
2022-07-24 11:40:38 +02:00
fdbf3a7358
gui: PreviewGeneratorPlainText: Move snippet gen to own function for reuse
2022-07-24 11:34:52 +02:00
ac4d7dd0a5
gui: mainwindow: Obey scale settings for plaintext previews too
2022-07-23 20:21:45 +02:00
ab064c3e3b
gui: mainwindow: Add menu action to open web user manual
2022-07-23 20:16:19 +02:00
a33c7f1859
gui: MainWindow: Move all connect() calls from constructor to connectSignals()
2022-07-16 23:35:40 +02:00
69e028daf5
gui: mainwindow: Open new AboutDialog
2022-06-29 18:00:05 +02:00
d4b0c1feae
gui: Add new AboutDialog to show our licenses "paperwork"
2022-06-29 18:00:05 +02:00
ba030169aa
gui: previews: Allow filtering file for which to show preview
2022-06-29 18:00:05 +02:00
b6b3e2f3c0
shared SandBoxedProcessor: Return SaveFileResult, remove defines
...
Not entirely ideal as SandboxedProcessor does not save anything,
but an improvement nevertheless over the current mess
2022-06-24 19:17:50 +02:00
9c41d531b0
gui: mainwindow: Add button to save log of failed paths
2022-06-24 19:17:50 +02:00
759d2a7924
Fix builds with quazip 1.X
...
Sigh. quazip changed the lib name, include locations, etc. from version 1.
Some distributions only have 0.9. Some only 1.x and so some packages break,
so they simply patch it when building the package.
Luckily, nothing we use from quazip is affected from an API perspective.
So detect if there is quazip1, then use pkg-config to link that, else do it like before.
2022-06-21 22:33:50 +02:00
11decb757f
gui: MainWindow: Settings: Allow changing database path too
2022-06-14 10:58:38 +02:00
b71c234fb4
gui: MainWindow: Also highlight unicode numbers in previews
2022-06-14 10:16:07 +02:00
8ba4ee5847
gui: Disable settingsTab while Indexer is running
2022-06-13 22:53:41 +02:00
451c79088a
shared/gui: Don't consider non-content search results for previews
...
Not entirely ideal, since we may want to search for 'cake', and look at
a preview for 'cake.txt' even if there is no 'cake' inside.
But this will do for now
2022-06-13 22:46:14 +02:00
0d2e518000
mainwindow: Remove 'Open config in text editor' menu action
...
Retired because we have a settings tabs now
2022-06-13 21:57:34 +02:00
c82cf03814
gui: main: Remove leftover old, now removed --no-sandboxing option from parser
2022-06-13 21:57:34 +02:00
a408173064
main: Ensure event loops runs before Common::ensureConfigured() called
...
Otherwise migration progress cannot be reported
2022-06-13 21:57:34 +02:00
dd479fa668
gui: Add 'Settings' tab
2022-06-13 21:57:34 +02:00
f29f997289
gui: ipc sandbox: Restrict sandbox further
...
Switch to QCoreApplication, since the ipc worker is not a GUI application.
We can also remove some vows this ways. Furthermore, disable connect() syscall
explicitly.
2022-06-09 10:04:48 +02:00
87ebc137d5
shared/gui: Add LOOQS_DISABLE_SANDBOX env to allow disabling sandboxing
...
Mainly for devs to check whether a problem is caused by sandboxing.
2022-06-06 23:23:07 +02:00
67189f34c6
gui: main: Make sandboxing work on kernels without landlock
...
Those are still around of course, so deal with that
2022-06-06 22:16:36 +02:00
0d81452a67
rename icon to looqs.svg
2022-06-06 15:55:21 +02:00
f8d6a1a586
gui: mainwindow: Use Unicode category class to extract highlight words
2022-06-06 09:34:37 +02:00
52b296ff01
gui: mainwindow: Set default query limit to 1000
2022-06-05 14:39:57 +02:00
862168418b
gui: mainwindow: Reword warning for inaccessible files
2022-06-05 14:39:57 +02:00
8f69be229b
gui: mainwindow: Exclude HTML files from previews until we can do it properly
2022-06-05 14:39:57 +02:00
4187c3bfca
gui: mainwindow: Switch to results tab when searching from indexer tab
2022-06-04 17:09:26 +02:00
1ec42e4949
gui: mainwindow: Add 'sync index' menu option
...
Opens a progress dialog while syncing takes place.
2022-06-04 17:09:26 +02:00
1ec7a5a865
gui: main: Ensure a clean exit
2022-06-04 17:09:26 +02:00
3f85f214e3
gui: mainwindow: Add menu opening config and About dialogs
2022-06-04 17:09:26 +02:00
ae57a22078
gui: MainWindow: Set, save and restore ignore patterns
2022-06-04 17:09:26 +02:00