summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-14Update changelogrich-text-messagesFlorian Bruhin
2022-06-14Only replace the exact same messageFlorian Bruhin
If we have a error message followed by an info message with the same text, they should both be shown, not replaced automatically.
2022-06-14Add --rich to :message-* commandsFlorian Bruhin
See #7246
2022-06-14Don't render messages at Qt rich text by defaultFlorian Bruhin
Closes #7246
2022-06-14Add a MessageInfo data classFlorian Bruhin
Preparation for #7246
2022-06-14Update changelogFlorian Bruhin
2022-06-14Merge remote-tracking branch 'origin/pr/6456'Florian Bruhin
2022-06-14Update docsFlorian Bruhin
2022-06-14Use with_history instead of no_history in APIFlorian Bruhin
Better to have positive rather than negated names. Still keeping the user-facing part though, to keep the default.
2022-06-14Add tests for :session-save --no-historyFlorian Bruhin
2022-06-14Add test for :session-save with --no-historyFlorian Bruhin
2022-06-14tests: Make it possible to pass flags when saving sessionFlorian Bruhin
2022-06-14Merge remote-tracking branch 'origin/pr/7184'Florian Bruhin
2022-06-14Restore search match debug loggingFlorian Bruhin
Needed for tests... Partially reverts 8137f2a6d90e30643ad3bcf0c2c182c9a48012eb.
2022-06-14Merge branch 'dev'Florian Bruhin
2022-06-14Unify duplicated prev/next search codeFlorian Bruhin
2022-06-14Update docsFlorian Bruhin
2022-06-14Add a SearchMatch.is_null()Florian Bruhin
2022-06-14Fix lintFlorian Bruhin
2022-06-14Remove now-unneeded lint ignoreFlorian Bruhin
2022-06-14Slightly clean up _draw_widgetsFlorian Bruhin
2022-06-14Update changelogFlorian Bruhin
2022-06-14Use 'continue', not 'return'Florian Bruhin
Otherwise, any following widget in the for loop would not be added.
2022-06-13Skip test broken on QtWebKitdevFlorian Bruhin
(cherry picked from commit d01dd9be07bd1591b1ecda298a2bf84b41ea280c)
2022-06-13Fix lint with FindFlags changeFlorian Bruhin
2022-06-13Fix prev_result/next_result with None callbacksFlorian Bruhin
2022-06-13Add a helper dataclass for find flagsFlorian Bruhin
When e.g. doing: - '?foo' (search with reverse=True -> FindBackwards) - 'N' (prev_result -> no FindBackwards) - 'n' (next_result -> FindBackwards again) we need to take a copy of the flags so that we can temporarily clear FindBackwards when pressing 'N'. Relevant history: - We originally did int(self._flags) in d4502574856c7d539a0890fbb6b093942c4551b6. - In f0da508c218ad57289bdb9268faeba7b7741a233, we used QWebPage.FindFlags(int(self._flags)) instead. - With 97bdcb8e674c8ff27ab92448effef263880ab3aa (picked from c349fbd18084183d44f351af617f6ad5d16efabf) we instead do: flags = QWebEnginePage.FindFlag(self._flags) Using FindFlag instead of FindFlags seemed to work fine with PyQt6 and enum.Flag. With PyQt5, however, later clearing a flag bit ends up with us getting 0 as an integer, thus losing the type information about this being a FindFlag instance, and resulting in a TypeError when calling into Qt. We could use FindFlags() with PyQt 6 but FindFlag() with PyQt 5 to copy the original flags, but that's getting rather cumbersome. Instead, let's have a helper dataclass of bools, do away with the bit-twiddling, and only convert it to a Qt flags when we actually need them. This solves the copying issue nicely, and also makes the code a lot nicer. Finally, this also adds a test case which fails when the flags are mutated in place instead of copied. We could do the same kind of change for QtWebKit as well, but given that it's somewhat dead - and perhaps more importantly, won't run with Qt 6 - let's not bother. To not break the end2end tests with QtWebKit, the output still is the same as before. (cherry picked from commit 96a0cc39512753445bc7a01b218b2f1290819ddd)
2022-06-13search: Split navigation/search callbacksFlorian Bruhin
This way, we can move more logic (checking wrapping, etc.) into the API, thus making the commands much more simple and stateless.
2022-06-13search: Move wrap argument to next/prev_resultFlorian Bruhin
The fact that we need to specify this while searching rather than when "zapping" through the results make no sense. It makes both the API as well as our own code more complex.
2022-06-13Get rid of _WebEngineSearchWrapHandlerFlorian Bruhin
2022-06-13Add a SearchMatch helper classFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/6670' into devFlorian Bruhin
2022-06-13Fix lintFlorian Bruhin
2022-06-13click-element: Fix typingFlorian Bruhin
2022-06-13click-element: Unpack lambda dict into ifFlorian Bruhin
Easier to do assertions, and seems cleaner than storing lambdas.
2022-06-13Add setting referenceFlorian Bruhin
2022-06-13Add test for using :prompt-fileselect-external on wrong promptFlorian Bruhin
2022-06-13Update docsFlorian Bruhin
2022-06-13Fix testFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/7003'Florian Bruhin
2022-06-13Update docsFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/6448'Florian Bruhin
2022-06-13Update changelogFlorian Bruhin
2022-06-13Minor fixesFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/7096'Florian Bruhin
2022-06-13Update changelogFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/7124'Florian Bruhin
2022-06-13Update changelogFlorian Bruhin
2022-06-13Merge remote-tracking branch 'origin/pr/7196'Florian Bruhin
2022-06-13Update changelogFlorian Bruhin