summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/hints.py
AgeCommit message (Collapse)Author
2021-06-15Make mypy happyFlorian Bruhin
2021-06-14feat: expose 'currently open URL' variable via hints to userscriptsYasser Kaddoura
2021-03-23Fix lint/testsFlorian Bruhin
2021-03-23Circular import workaroundsFlorian Bruhin
2021-03-12Set hint label text format explicitlyFlorian Bruhin
Fixes #6267
2021-03-11Revert "Add deprecated aliases for renamed commands"Florian Bruhin
This reverts commit 8976e6850317881ed1aebed55a273e73c17a50bd.
2021-03-01Replace messages with :hint links yank --rapidFlorian Bruhin
2021-01-30Prevent crash on non-UTF-8 hint dictionarySara Johnsson
2021-01-27Add deprecated aliases for renamed commandsFlorian Bruhin
See #6022, #6071
2021-01-26Get rid of IOErrorFlorian Bruhin
It's an alias to OSError since Python 3.3: https://docs.python.org/3/library/exceptions.html https://www.python.org/dev/peps/pep-3151/
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-20Rename :follow-hint to :hint-followFlorian Bruhin
See #6022
2021-01-13dataclasses: Fix args/typing around HintContextFlorian Bruhin
For some reason, some issues were only uncovered by mypy after switching from attrs to dataclasses. See #6023
2021-01-13dataclasses: Initial mypy fixFlorian Bruhin
See #6023
2021-01-13dataclasses: Adjust import orderFlorian Bruhin
See #6023
2021-01-13dataclasses: Initial switchFlorian Bruhin
See #6023
2020-10-27mypy: use from-import for typing in remaining files in `browser`Tim Brown
The type comments have also been changed to annotations, since Python 3.5 support will be dropped with the next release. See #5396
2020-10-26Use enum.auto() for most enum valuesFlorian Bruhin
Doesn't change values where they are chosen to line up with Qt enums. See #4800
2020-10-16Use signals to set status text from HintManagerFlorian Bruhin
2020-10-16Get rid of GlobalMessageBridgeFlorian Bruhin
After f16b96aa28fc68c0b9caf15241067e51797dd604, the per-window MessageBridge wasn't really needed anymore - only for the statusbar's set_text method, which we can just call directly as well.
2020-10-16Remove statusbar.text.Text entirelyFlorian Bruhin
After the last commit (2a440e5d80c27849f4fe420e01ea5c0fc0de3332), the only remaining thing was maybe_reset_text() which was added in 71796e952876cb3f4ae0c6ac53773a28a8d4a8d3 to avoid clearing the "insert text" text when insert mode is entered via hints. However, that doesn't actually seem to be needed anymore, as hint mode is now left *before* hint handlers are executed.
2020-10-16Add/improve docs for enumsFlorian Bruhin
2020-10-09Use class-based API instead of functions for enumsYegor
2020-07-31Set hint statusbar text after entering hint modeFlorian Bruhin
Otherwise, when entering hint mode from inside another mode, the following will happen: - Hint statusbar text gets set - We enter hint mode - That leaves e.g. insert mode - That clears the statusbar So we end up in hint mode with an empty status bar. Doesn't seem to be possible to easily write a test for this, as we don't have enough unit tests for hints and end2end tests can't easily check the statusbar text :(
2020-05-10mypy: Use explicit "type: ignore[...]" ignoresFlorian Bruhin
See #5368
2020-05-10Fix argument type for HintManager._hint_strings callFlorian Bruhin
We accidentally passed a list of HintLabels instead of a list of elements there. That worked by accident, because all we use with number hints is actually the length of that list. See #5368
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-12-20Use correct user agent for downloadsFlorian Bruhin
See #2800, #513
2019-11-25Remove web-history from objregFlorian Bruhin
See #640
2019-11-24Remove keyparsers from objregFlorian Bruhin
This gets rid of an exception/abort when tests are finished with the new PyQt exit scheme. See #5017, #640
2019-10-17Fix lintFlorian Bruhin
2019-10-17Add right-click target for :hintFlorian Bruhin
2019-10-10Add type hints for browser.hintsFlorian Bruhin
2019-10-09Move HintManager from a per-tab to a per-window objectFlorian Bruhin
This means we use objreg less and we have less HintManager objects - what's there not to like?
2019-07-06Move color conversion to string inside conditional.Jimmy
So it is only done for matched ones.
2019-07-06Fix colors.hints.match.fg with rgb() syntax.Jimmy
The other hint colors are being set in a Qt stylesheet, this one isn't. I turned it into a QtColor because that returns a QtColor out of the box and I don't need to construct a new one. `QColor.name()` returns a #RRGGBB string by default. No need for escaping since we will be inserting a fixed format now. This means colors.hints.match.fg will no longer support gradients, as per the QssColor/QtColor docs. I thing that doesn't make sense for text color anyway.
2019-05-13Add missing docs for delete hint target to :hintJay Kamat
2019-05-11Merge remote-tracking branch 'origin/pr/4764'Florian Bruhin
2019-05-08Check if the tab is current in HintManager._start_cbuser202729
Fixes #3892.
2019-05-06Add delete target for hintsJay Kamat
2019-04-18Fix stale tabs.background_tabs referencesFlorian Bruhin
2019-03-28Adjust commentFlorian Bruhin
2019-03-28Merge remote-tracking branch 'origin/pr/4637'Florian Bruhin
2019-03-23Force padding to be 3px on each sideJay Kamat
Closes #4673
2019-03-15Set hint stylesheet only on HintLabel objectsJay Kamat
2019-03-13Eschew the extraneous elsesFlorian Bruhin
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
2019-03-10Apply hint stylesheet on main applicationJay Kamat
Before, we applied a custom stylesheet on every hint object, which was slow. It's much faster to apply it globally and change the objectName to tweak access
2019-02-22Update copyright for 2019Jay Kamat
2018-11-30Fix lintFlorian Bruhin