Commit Graph

17317 Commits

Author SHA1 Message Date
Florian Bruhin
bc0ac62087 Rename api.tab.Tab to api.apitypes.Tab
Then we can add other related types there, and we don't clash with the common
"tab" argument for a new tab.
2018-11-30 14:28:29 +01:00
Florian Bruhin
88205a8d32 Add AbstractScroller.before_jump_requested signal
This allows us to save the ' mark without needing access to the TabbedBrowser
object.

This also changes the places the ' mark is saved slightly:

- :navigate doesn't save it anymore as there is no reason to do so (loading the
  new page will render the mark useless anyways).
- When clearing a search, the ' mark isn't saved.
- :scroll-anchor now saves the ' mark.
2018-11-30 14:17:40 +01:00
Florian Bruhin
e6c6e0dd59 Move scroll commands to components/ 2018-11-30 14:06:25 +01:00
Florian Bruhin
ce3b1f252d Add api.message and api.tab 2018-11-30 13:58:26 +01:00
Florian Bruhin
c0d4fe0ab5 Make it possible to inject tab via cmdutils.Value 2018-11-30 13:14:58 +01:00
Florian Bruhin
4ce8a6eaf6 Mark unreachable 2018-11-30 13:09:13 +01:00
Florian Bruhin
4e56d0e8b3 Refactor Command._get_self_arg 2018-11-30 13:06:53 +01:00
Florian Bruhin
7a90340299 Unify _get_count_arg/_get_win_id_arg 2018-11-30 12:59:21 +01:00
Florian Bruhin
566304ab4e Fix lint 2018-11-30 12:51:54 +01:00
Florian Bruhin
fe6f627305 Add partial type annotations for utils.message 2018-11-30 12:51:26 +01:00
Florian Bruhin
8725ac6e66 Fix type of stack argument for utils.message 2018-11-30 12:49:57 +01:00
Florian Bruhin
569bb0fa09 Add cmdutils.Value instead of using count=True/win_id=True 2018-11-30 12:45:01 +01:00
Florian Bruhin
d549d4d5e2 Fix test_configcommands 2018-11-30 11:19:34 +01:00
Florian Bruhin
b3fa43a97c Fix broken test_on_tab_changed 2018-11-30 11:19:34 +01:00
Florian Bruhin
9c4ebb97d7 Fix refactoring issues 2018-11-30 11:19:34 +01:00
Florian Bruhin
536a7ef1e6 Move command registering to Command object 2018-11-30 09:51:45 +01:00
Florian Bruhin
e184ace8cb Fix lint 2018-11-30 09:47:25 +01:00
Florian Bruhin
5199681b41 Rename add_history_item 2018-11-30 08:45:45 +01:00
Florian Bruhin
a7f7607b4d Rename _openurl_prepare 2018-11-30 08:38:11 +01:00
Florian Bruhin
da5527f5ef Rename predicted_navigation 2018-11-30 08:37:29 +01:00
Florian Bruhin
6a27cd4e15 fixup 2018-11-30 08:35:56 +01:00
Florian Bruhin
f6c36ccbee Rename openurl to load_url
We still call the :open command openurl, but in the tab API and in
TabbedBrowser it's now called load_url.
2018-11-30 08:31:03 +01:00
Florian Bruhin
5bf0dffa95 Move history (de)serializing to a private_api object 2018-11-30 08:23:52 +01:00
Florian Bruhin
27ee3280b2 Separate success/error callbacks 2018-11-29 20:29:43 +01:00
Florian Bruhin
0104490978 Use enum values for load_status_changed 2018-11-29 19:44:48 +01:00
Florian Bruhin
a6d3a935d3 Use an enum for IgnoreCase 2018-11-29 19:40:20 +01:00
Florian Bruhin
2cd2c60a8b Rename key_press to fake_key_press 2018-11-29 19:30:28 +01:00
Florian Bruhin
7a3d1b0212 AbstractHistory: Check count 2018-11-29 19:28:11 +01:00
Florian Bruhin
b2796d4a85 Rename some AbstractZoom methods 2018-11-29 19:26:05 +01:00
Florian Bruhin
73e196ff65 Make url(requested=True) a keyword-only arg 2018-11-29 19:23:14 +01:00
Florian Bruhin
cd8e3094b9 Avoid circular import 2018-11-29 19:22:28 +01:00
Florian Bruhin
609b8f1cee Fix return values of AbstractPrinting.check_*_support 2018-11-29 19:10:47 +01:00
Florian Bruhin
f81c5b7eab Move common key_press implementation 2018-11-29 19:10:19 +01:00
Florian Bruhin
4b7c60da9f Improve docstrings 2018-11-29 19:08:48 +01:00
Florian Bruhin
c1b9318e77 check_coverage: Add test_objects.py 2018-11-29 19:04:14 +01:00
Florian Bruhin
595e152729 Remove AbstractAudio.toggle_muted 2018-11-29 19:03:45 +01:00
Florian Bruhin
c7179e35cc Remove old code 2018-11-29 19:02:36 +01:00
Florian Bruhin
6ccba16b72 Fix coverage 2018-11-29 19:02:03 +01:00
Florian Bruhin
b7de287e7b Move CommandError to api.cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
f9858733c1 Improve docstrings 2018-11-29 14:18:11 +01:00
Florian Bruhin
e576847b91 Add partial type annotations for qtutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
7cbba4b3f1 Add type annotations for cmdutils 2018-11-29 14:18:11 +01:00
Florian Bruhin
19628d0ae9 Move cmdutils.cmd_dict to objects.commands 2018-11-29 14:18:11 +01:00
Florian Bruhin
168bc3dc49 Be stricter in mypy.ini 2018-11-29 14:18:11 +01:00
Florian Bruhin
4caa2e056b Add type annotations to misc.objects 2018-11-29 14:18:11 +01:00
Florian Bruhin
ccab751d3c
Merge pull request #4431 from winny-/winny--patch-1
Change some language about autoconfig to be clearer
2018-11-29 08:33:21 +01:00
Florian Bruhin
c3477b0468 Update changelog 2018-11-29 08:29:56 +01:00
Florian Bruhin
351b6c9b45 Add unit test for slashes in search terms 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
9d069ea12b Encode slashes in default search engine test 2018-11-29 08:29:56 +01:00
Thorsten Wißmann
65c51931c7 Wrap url quoting into new line 2018-11-29 08:29:56 +01:00