Florian Bruhin
735e6123cd
Fix lint
2018-12-10 12:37:49 +01:00
Jay Kamat
bc06c66823
Merge pull request #4460 from dan-santana/master
...
Use POSIX shell instead of bash on scripts/open_url_in_instance.sh
2018-12-07 17:59:03 -08:00
Daniel Santana
d505ed9fa2
Use POSIX shell instead of bash on scripts/open_url_in_instance.sh
2018-12-07 12:25:47 -02:00
Florian Bruhin
fe75ee1469
Mark "Using JS after window.open" as flaky
2018-12-05 18:28:43 +01:00
Florian Bruhin
b9cb98a5ef
mypy: Add types for config.websettings
2018-12-05 17:48:56 +01:00
Florian Bruhin
7bddb7867b
Add missing test for configtypes.Key
2018-12-05 17:23:09 +01:00
Florian Bruhin
a9c1fc665f
Fix configtypes.Perc.to_str()
...
If we used an int/float in config.py for a Perc value (e.g. zoom.default),
to_str() returned int/float instead of str, causing qWarnings and bugs.
2018-12-05 17:15:57 +01:00
Florian Bruhin
f53fd56c3d
mypy: Add annotations for qutebrowser.config.configtypes
2018-12-05 17:06:45 +01:00
Florian Bruhin
403e63d6f2
Configure coverage.py for "if MYPY:"
2018-12-05 09:05:32 +01:00
Florian Bruhin
c752ba4721
Fix coverage
2018-12-05 08:55:35 +01:00
Florian Bruhin
2770a935e9
Properly fix zoom handling
2018-12-05 07:57:21 +01:00
Florian Bruhin
8a107fa5b3
Fix int_level handling in :zoom
2018-12-04 17:38:50 +01:00
Florian Bruhin
91a592a256
Merge remote-tracking branch 'origin/pr/4449'
2018-12-04 16:46:14 +01:00
Florian Bruhin
b5a6a5ab8c
Merge remote-tracking branch 'origin/pr/4451'
2018-12-04 16:43:25 +01:00
Florian Bruhin
7c4b0315af
Merge remote-tracking branch 'origin/pyup-scheduled-update-2018-12-03'
2018-12-04 16:39:15 +01:00
Florian Bruhin
2cb277afd7
Fix exception messages in Command
...
The messages weren't updated in ac78039171
.
2018-12-04 16:30:01 +01:00
Florian Bruhin
268ad40982
Add and enforce types for api.*/components.*
2018-12-04 15:52:14 +01:00
Florian Bruhin
953042d75d
mypy: Disable untyped decorators
2018-12-04 07:28:28 +01:00
pyup-bot
2a7a3de8fc
Update certifi from 2018.10.15 to 2018.11.29
2018-12-03 19:15:15 +01:00
pyup-bot
70284704c7
Update certifi from 2018.10.15 to 2018.11.29
2018-12-03 19:15:13 +01:00
Florian Bruhin
71f9c5d206
Fix handling of annotated varargs in commands
...
When we have something like "*values: str" in :config-cycle, we get a list of
values, but the type converter assumes it's a string.
We could implement proper conversion of *args, but for now, let's just make
sure it's always a string.
2018-12-03 15:55:04 +01:00
Florian Bruhin
13dac9eef5
Revert "Revert "Add types for most of qutebrowser.config""
...
This reverts commit 7494d238ce
.
2018-12-03 15:36:21 +01:00
Florian Bruhin
7494d238ce
Revert "Add types for most of qutebrowser.config"
...
It breaks 'tsh' because of the *values annotation.
This reverts commit 208d3db475
.
2018-12-03 13:17:23 +01:00
Florian Bruhin
208d3db475
Add types for most of qutebrowser.config
2018-12-03 12:35:51 +01:00
Florian Bruhin
b0ae4deac8
ADjust check_coverage for api/
2018-12-03 08:49:10 +01:00
Florian Bruhin
d01672bab7
Regenerate docs
2018-12-03 08:45:25 +01:00
Florian Bruhin
a47ee08a84
Fix wrong/missing argument annotations
2018-12-03 08:45:13 +01:00
Florian Bruhin
285db344b3
Allow to document count_tab as "count:" argument
2018-12-03 08:44:51 +01:00
Florian Bruhin
ede13c76d9
Fix checking for count in src2asciidoc
2018-12-03 08:44:35 +01:00
Florian Bruhin
ef5e5d84ac
Add assert for Command.pos_args
2018-12-03 08:44:10 +01:00
user202729
e81f070a79
Use tojson filter to convert url to Javascript string
...
Fixes #4450 .
2018-12-02 22:56:44 +07:00
Pellegrino Prevete
0e547414af
Update translations and desktop actions
...
Added translations for most languages and added some "standard" desktop actions.
2018-12-02 05:32:56 +00:00
Florian Bruhin
4d8c8a5d92
Fix :home with pinned tabs
2018-11-30 16:58:33 +01:00
Florian Bruhin
a7a8f4470b
Make ExternalEditor slots private
2018-11-30 16:57:48 +01:00
Florian Bruhin
d484d9363e
Fix caret cmds
2018-11-30 16:52:17 +01:00
Florian Bruhin
a0dca95310
Move Command._handle_special_call_arg out of _get_call_args
2018-11-30 16:35:40 +01:00
Florian Bruhin
23d0dbd998
Fix handling of optional values in _add_special_arg
...
That way, we can pass None as a valid value.
2018-11-30 16:28:43 +01:00
Florian Bruhin
34aaca2aa0
Fix lint
2018-11-30 16:25:19 +01:00
Florian Bruhin
40d376fbcf
Move unit tests
2018-11-30 16:25:12 +01:00
Florian Bruhin
bfa518896a
Fix Command.takes_count
...
Before, what this actually did was checking the .count argument of
a string (the *keys* in self._qute_args). Therefore, it always returned True as
soon as a command had any @cmdutils.argument decorator.
2018-11-30 16:23:34 +01:00
Florian Bruhin
979be017c3
Add components.misccommands
2018-11-30 15:56:16 +01:00
Florian Bruhin
7788a91ed2
Add CommandValue.count_tab
2018-11-30 15:55:50 +01:00
Florian Bruhin
2ef82caa10
apitypes: Expose webelem.Error/ClickTarget/JsWorld
2018-11-30 15:55:05 +01:00
Florian Bruhin
3abc83d945
Rename CommandValue.tab to CommandValue.cur_tab
2018-11-30 15:43:14 +01:00
Florian Bruhin
3a7206bda1
Make standarddir.Location private
2018-11-30 15:36:54 +01:00
Florian Bruhin
ba03e9394a
Move zoom commands to components/
2018-11-30 14:46:00 +01:00
Florian Bruhin
da505c84c6
Expose config.val to extension API
2018-11-30 14:46:00 +01:00
Florian Bruhin
a09b1a4e05
Move caret commands to components.caretcommands
2018-11-30 14:46:00 +01:00
Florian Bruhin
7a379ebec1
Expose KeyMode to extension API
2018-11-30 14:45:55 +01:00
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