summaryrefslogtreecommitdiff
path: root/qutebrowser/commands
AgeCommit message (Collapse)Author
2021-10-03Make `go` work.Jimmy
Various QUrl methods that take a UrlFormattingOption enum member can also take ComponentFormattingOption ones but something doesn't know that and throws a TypeError. `url.toString(QUrl.UrlFormattingOption.RemovePassword | QUrl.ComponentFormattingOption.FullyEncoded)` works, `url.toString(QUrl.ComponentFormattingOption.FullyEncoded | QUrl.UrlFormattingOption.RemovePassword )` doesn't.
2021-08-26Automatically rewrite enumsFlorian Bruhin
See #5904
2021-08-26Blanket PyQt5 -> PyQt6Florian Bruhin
2021-04-23Fix :spawn -u -oFlorian Bruhin
Fixes #6407
2021-03-23Get rid of qute://spawn-outputFlorian Bruhin
2021-03-18Fix lintdev-split-parserFlorian Bruhin
As for the mypy unreachable warning, see: See https://github.com/python/mypy/issues/7214 and https://github.com/python/mypy/issues/8766 Includes cherry-pick of 27ad47825279a39141efd11ec9cc54ff2a872517
2021-03-18Move completion fallback handling out of CommandParserFlorian Bruhin
This makes CompletionParser.parse simpler and makes ParseResult.cmd and .args non-Optional. Them being Optional would mean we would've to either resort to more complex typing with Literal, or to check whether they are really non-None everywhere. Since fallback=True is only used at one point, let's just handle this at the calling site instead. In theory, this changes the behavior when the cmdstr is empty and self._partial_match is set, because we now raise early and self._completion_match isn't called anymore. In practice, I think this shouldn't make a difference anywhere, and tests seem to agree. If cmdstr is empty and self._partial_match is False, the behavior should be the same, because objects.commands[''] will raise KeyError.
2021-03-18Fix copy-paste issueFlorian Bruhin
2021-03-18Restore config access in commands.parserFlorian Bruhin
See https://github.com/qutebrowser/qutebrowser/pull/5967#issuecomment-791373157 but no issues with circular imports here, from what I can see...
2021-03-03WIP: Add type annotations for parserFlorian Bruhin
2021-03-03Fix importsFlorian Bruhin
2021-03-03Document and rename use_best_matchFlorian Bruhin
2021-03-03Adjust importsFlorian Bruhin
2021-03-03Merge remote-tracking branch 'origin/pr/5967' into devFlorian Bruhin
2021-01-27command: Improve deprecationFlorian Bruhin
Add a test and also allow setting a deprecated alias for a command easily.
2021-01-26command: Only do function inspection onceFlorian Bruhin
2021-01-26Add initial support for Python 3.10 annotationsFlorian Bruhin
PEP 563: https://www.python.org/dev/peps/pep-0563/ See #5769
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-20userscripts: Add QUTE_VERSIONFlorian Bruhin
See #937
2021-01-20Rename :run-macro and :record-macroFlorian Bruhin
See #6022
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
2021-01-06Remove unused imports in commands.parserRyan Roden-Corrent
2021-01-06Eliminate parser dependency on config.Ryan Roden-Corrent
commands.runners depends on config.config to get aliases and the best_match setting, while config.config depends on commands.runners to split commands. Eliminate this circular dependency by: - Moving CommandParser from commands.runners into its a new commands.parser module - Pass aliases/config settings into CommandParser as arguments
2020-11-29load scripts from config directoryBryon Meinka
fixes #5615
2020-10-28mypy: use from-import styleTim Brown
Update files in `api`, `commands`, `completion`, `components`, and `etensions`. See #5396
2020-10-26Initial drop of Python 3.5Florian Bruhin
See #4800
2020-10-02mypy: Update PyQt stubs and remove unneeded ignoresFlorian Bruhin
2020-06-16Use 0600 mode for uerscript FIFOFlorian Bruhin
os.mkfifo uses mode 0666 masked with the umask, i.e. 0644 on most systems by default. We'd like things to be more restrictive, to make sure other users can't get any data from another users' userscript FIFO. This shouldn't make any difference in practice because the FIFO is in standarddir.runtime() which must have 0700 permissions (and qutebrowser creates all standarddir directories with 0700 permissions if they don't exist). However, it's still a good idea to restrict the permissions as a second line of defense.
2020-06-16userscripts: Clear self._filepath on OSErrorFlorian Bruhin
As an additional precaution that a "tainted" path isn't being used anywhere. See https://github.com/qutebrowser/qutebrowser/security/code-scanning/2
2020-06-11command: Use consistent name for arg_infoFlorian Bruhin
(cherry picked from commit 279d28f982f3afe32c94fc938677bcad816b647e)
2020-05-10mypy: Disallow incomplete defs globallyFlorian Bruhin
2020-05-10mypy: Use explicit "type: ignore[...]" ignoresFlorian Bruhin
See #5368
2020-05-09mypy: Add cast for sip.voidptrFlorian Bruhin
See #5368
2020-05-09mypy: Fix typing for some re-assigned valuesFlorian Bruhin
See #5368
2020-04-02Make `spawn -m -u` work properlyuser202729
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-12-25Use (slightly) clearer wordingJethro Cao
2019-12-20Refactor user agent handlingFlorian Bruhin
We now use a format string for the user_agent setting and parse both backend's default user agents to get the needed information. Fixes #513
2019-11-25Use modeman.instance() to get mode managerFlorian Bruhin
See #640
2019-10-22Fix issues with mypy changesFlorian Bruhin
2019-10-22mypy: Fix new issues in commands.commandFlorian Bruhin
2019-10-22mypy: Fix new isuses in commands.userscriptsFlorian Bruhin
2019-10-15Make union check more readableFlorian Bruhin
2019-10-15mypy: check_untyped_defs for qutebrowser.mainwindowFlorian Bruhin
2019-10-15mypy: check_untyped_defs for qutebrowser.commandsFlorian Bruhin
2019-10-13Set command_only=True for macro-recorderFlorian Bruhin
See #640
2019-10-13objreg: Make it possible to register objects for commands onlyFlorian Bruhin
This is intended as a stop-gap solution to get things out of objreg - we can now get things out gradually, and as the last step, take care of commands. See #640