Commit Graph

1937 Commits

Author SHA1 Message Date
Florian Bruhin
3fd097066a Disallow spaces in search engine names 2018-11-08 12:43:53 +01:00
Florian Bruhin
08278138c4 Add :yank markdown 2018-11-03 07:54:37 +01:00
Florian Bruhin
a5dba34088 Set content.cookies.accept to all by default
Setting it to no-3rdparty is a nice idea from a "privacy by default"
perspective, but it also breaks various pages.

In particular, due to what's probably a Qt bug, it breaks the new GMail:
https://bugreports.qt.io/browse/QTBUG-71393

Let's be in line with what other browsers by default here.

Fixes #4281
2018-10-26 10:14:30 +02:00
Florian Bruhin
9d09aa1b40 Swap noun/verb in :config-{add,remove}-{dict-list}
See https://github.com/qutebrowser/qutebrowser/pull/4324#issuecomment-428934193
2018-10-11 14:29:10 +02:00
Florian Bruhin
1c1223821c Update docs 2018-10-11 14:18:02 +02:00
Milo Gertjejansen
9fd57b9be0 New config: More powerful :config- commands: remove
- `:config-remove-list` command to remove items from a list.
- `:config-remove-dict` command to remove items from a dict.
- Test coverage.

Continues #2794
2018-10-10 20:23:44 -05:00
Florian Bruhin
3fe64085f8 Add tabindex to default 'all' selector
See #178
2018-10-08 19:43:25 +02:00
Florian Bruhin
f36285658e Don't allow to set hints.selectors in autoconfig.yml
Also, set all settings temporarily for end2end tests.
This allows us to set things which aren't settable in autoconfig.yml.
2018-10-08 19:40:33 +02:00
Florian Bruhin
6d4c8f5b13 Merge remote-tracking branch 'origin/pr/3806' into test 2018-10-08 18:09:58 +02:00
Florian Bruhin
6168622de3 Update docs 2018-10-07 17:12:01 +02:00
Florian Bruhin
7cea4e3262 Merge remote-tracking branch 'origin/pr/4283' 2018-10-07 17:00:12 +02:00
Milo Gertjejansen
bcfc8fa3a8 New config: More powerful :config- commands: add #4283
Missed a small comment change.

Continues #2794
2018-10-06 19:45:36 -05:00
Milo Gertjejansen
a3528dcee8 New config: More powerful :config- commands: add #4283
Made minor changes to the second commit which broke tests out into
success and failure tests taking advantage of pytests.raises.

Additionally updated several grammar issues.

Continues #2794
2018-10-06 19:42:30 -05:00
Florian Bruhin
c689760872 Sort keys in configtypes.Dict.to_str
Otherwise, we get inconsistent output between runs on Python 3.5
2018-10-06 19:18:43 +02:00
Florian Bruhin
5fd20da915 Update docs 2018-10-06 00:13:58 +02:00
Florian Bruhin
14957c75ff Merge remote-tracking branch 'origin/pr/4046' 2018-10-05 23:36:40 +02:00
Florian Bruhin
42ef645cf1 Merge remote-tracking branch 'origin/pr/4004' 2018-10-05 17:46:49 +02:00
Florian Bruhin
1e8bb202e9 Make :q only close the active window
Closes #4061
Fixes #1089
2018-10-05 17:31:00 +02:00
Florian Bruhin
2c3f144cd5 Update docs 2018-10-05 17:21:36 +02:00
Florian Bruhin
fddb10e157 Merge remote-tracking branch 'origin/pr/4008' 2018-10-05 17:15:42 +02:00
Milo Gertjejansen
7f0ae252cd New config: More powerful :config- commands: add #4283
Made requested changes:

- Separated list add and dict add commands.
- Separated list and dict completion models.
- Created tests for each command.
- Simplified the configmodel options by breaking them into a separate
function to do work that is similar.
- General simplification of both add commands.

Continues #2794
2018-10-04 18:42:33 -05:00
Florian Bruhin
6c245ca7a0 Merge remote-tracking branch 'origin/pr/4220' 2018-10-04 19:34:03 +02:00
Florian Bruhin
8a3704fbe4 Update docs 2018-10-04 19:33:02 +02:00
Florian Bruhin
923b726e38 Merge remote-tracking branch 'origin/pr/4220' 2018-10-04 19:28:01 +02:00
Ryan Roden-Corrent
a5b3670477
Fix pylint/flake8 errors in configtypes. 2018-10-03 21:44:10 -04:00
Ryan Roden-Corrent
59f9d31d4b
Fix up configtypes based on code review.
- Remove stray statements
- add an early bail-out if we can't parse a color function
- add more test cases
2018-10-03 17:41:48 -04:00
Ryan Roden-Corrent
46683b82e7
Change colors.completion.match.fg to QtColor.
The color is now used in a custom Highlighter class, not set in a
stylesheet.
2018-10-02 17:47:33 -04:00
Ryan Roden-Corrent
66cc5f5ea4
Add support for more values in QtColor config type.
Recent changes in the completion highlighter mandate that
config.val.colors.completion.match be changed from a QssColor to a
QtColor. However, the latter accepts fewer formats. To avoid breaking
configs, this allows QtColors to be specified using all the same formats
as QssColors, excluding gradients.

I separated the QssColor and QtColor tests as the previous approach of
generating the tests made adding tests for QtColor more complicated.

While working on this I discovered that Qt's css parser is potentially
broken around parsing hsv percentages and filed
https://bugreports.qt.io/browse/QTBUG-70897.

For consistency, I made our parser similarly broken.

You can show the bug in qutebrowser right now by noting that the
following have different effects:

```
set colors.completion.odd.bg 'hsv(100%, 100%, 100%)'
set colors.completion.odd.bg 'hsv(358, 255, 255)'
```
2018-10-02 17:30:43 -04:00
Milo Gertjejansen
876a2bdaa1 New config: More powerful :config- commands: add
Adds the config-add command.

Modifies #2794
2018-10-01 22:22:39 -05:00
Florian Bruhin
45a3611b62 Update docs 2018-09-30 22:08:00 +02:00
Florian Bruhin
2f121d77df Update docs 2018-09-28 19:38:17 +02:00
Florian Bruhin
6d0d408785 Use when-searching, not when_searching 2018-09-28 19:28:32 +02:00
Florian Bruhin
628e4e8692 Fix lint 2018-09-28 19:28:32 +02:00
Florian Bruhin
10646cf9b8 Merge remote-tracking branch 'origin/pr/4186' 2018-09-28 19:27:59 +02:00
Florian Bruhin
2b1ebe2762 Improve content.mute docs 2018-09-28 17:36:35 +02:00
Florian Bruhin
6be4ee2ff3 configtypes: Be more explicit about None-values 2018-09-28 16:40:08 +02:00
Florian Bruhin
f780974d07 Allow fallback=False with config.get/get_obj 2018-09-28 16:40:08 +02:00
Florian Bruhin
5527d27ba7 Merge remote-tracking branch 'origin/pr/4189' 2018-09-28 13:02:45 +02:00
Jay Kamat
14e55eae49
Merge remote-tracking branch 'upstream/master' into jay/max-tab 2018-09-27 19:03:15 -07:00
Florian Bruhin
36d7dc4853 Add :prompt-open-download --pdfjs 2018-09-27 22:25:29 +02:00
Jay Kamat
e01682f51d
Add tabs.max_width setting 2018-09-26 21:39:45 -07:00
Olmo Kramer
5bf6c97a68
Add bindings to toggle content.images 2018-09-19 12:48:13 +02:00
Ellis
398519762b Merge branch 'master' of https://github.com/qutebrowser/qutebrowser 2018-09-18 13:33:30 -04:00
Ellis
2dec2b0c53 Reworded docs in whitelist config setting 2018-09-18 13:21:22 -04:00
Florian Bruhin
46435bcd2f Use always/never instead of force-on/force-off 2018-09-18 11:12:50 +02:00
Florian Bruhin
7858beee06 Fix lint 2018-09-17 20:33:37 +02:00
Florian Bruhin
91df81f5ab Refactor configinit.qt_args 2018-09-17 19:40:18 +02:00
Florian Bruhin
17c7663ad0 Make content.headers.referer work on QtWebEngine 2018-09-17 19:40:18 +02:00
Ellis
80463cf8d8 Reworded configdata to fit with previously used descriptions 2018-09-17 12:49:07 -04:00
Florian Bruhin
bd21686e0d Add webrtc_ip_handling_policy setting
This exposes all possible values, but before
https://codereview.qt-project.org/#/c/240121/ we won't be able to change those
at runtime (or enable URL patterns, which thankfully weren't enabled for the
old setting).

In theory, it'd be possible to handle the "public-interface-only" value via
QWebEngineSettings without requiring a restart, but it isn't worth the trouble.

Closes #4201
2018-09-17 18:39:41 +02:00