Commit Graph

12919 Commits

Author SHA1 Message Date
Florian Bruhin
a283a1bb65 Merge branch 'master' into new-config 2017-09-09 10:52:02 +02:00
Florian Bruhin
2117824cf9 Merge pull request #2914 from rcorre/configmerge
Merge master into new-config
2017-09-09 10:52:17 +02:00
Ryan Roden-Corrent
a8b0a42791 Remove extra blank line from utilcmds 2017-09-08 08:00:29 -04:00
Florian Bruhin
8fce08a927 Merge pull request #2950 from instinctive/patch-1
Use python3-qt5-webengine for Fedora
2017-09-08 11:16:00 +02:00
instinctive
adb552ee6e Use python3-qt5-webengine for Fedora
This was the incantation that worked for me on Fedora 26.
2017-09-07 14:29:45 -07:00
Ryan Roden-Corrent
deb6cccff9 Fix merge resolution in messageview.
Remove a line that was acidentally re-added while merging master into
new-config.
2017-09-07 12:08:26 -04:00
Ryan Roden-Corrent
a6d14ad7dc Fix two new-config/master merge resolutions.
Remove icon from jinja.render call (removed in master).
Add 'When the unwritable dir is unwritable' to download feature file.
2017-09-07 08:58:55 -04:00
Ryan Roden-Corrent
607c64742c Fix configmodel nitpicks 2017-09-07 08:56:11 -04:00
Ryan Roden-Corrent
f0509d1c26 Fix web_history_max_items default value.
Should default to -1, not 1000 as the new history completion is better
able to handle large numbers of entries. I believe this was acidentally
reset to 1000 while fixing a merge conflict.

Also re-run src2asciidoc.
2017-09-07 08:45:05 -04:00
Ryan Roden-Corrent
6e0f65c063 Remove duplicate line from pytest.ini. 2017-09-07 07:34:26 -04:00
Ryan Roden-Corrent
aec736439c Restore history cache stats.
Acidentally removed in merge.
2017-09-07 07:32:51 -04:00
Ryan Roden-Corrent
63e0574411 Remove stray FIXME:conf 2017-09-07 07:32:46 -04:00
Florian Bruhin
7f30fe377c Update CONTRIBUTING for new completion 2017-09-07 13:01:21 +02:00
Ryan Roden-Corrent
a5ecb75fcd Really avoid flakiness in test_models.
Ensure the OrderedDict is actually ordered consistently.
2017-09-05 07:52:42 -04:00
Ryan Roden-Corrent
3726502017 Fix bad merge from master to newconfig. 2017-09-05 07:44:36 -04:00
Ryan Roden-Corrent
fc02216754 Avoid flakiness in test_models.
Ensure config values are ordered consistently by using an OrderedDict.
2017-09-04 16:30:54 -04:00
Ryan Roden-Corrent
0d78c72018 Remove config dependency from get_cmd_completions.
In order to really resolve the python3.4 circular import, this should
take the completion info as an argument and not depend on the config
module.
2017-09-04 15:00:35 -04:00
Ryan Roden-Corrent
3bfa01f0d0 Pass CompletionInfo to completion functions.
In python3.4, there is a circular dependency between the config module
and configmodel.bind. This is resolved by dependency injection. The
config/keyconfig instances are embedded in a struct passed to every
completion function, so the functions no longer depend on the modules.

This will also enable completion functions to access other previously
inaccessible info, such as the window id.
See #2814.
2017-09-04 14:01:48 -04:00
Florian Bruhin
1938520878 eslint: Turn off function-paren-newline 2017-09-04 15:48:33 +02:00
Florian Bruhin
ee147bb327 Merge pull request #2942 from kepi/fix/pfill_visible_input
password_fill: Stop filling username to invisible input fields
2017-09-04 15:34:27 +02:00
Florian Bruhin
2598fd8c5d Add a note about Gentoo and bindist to INSTALL
Closes #2944
2017-09-04 15:03:04 +02:00
Kepi
69ea2cf327 password_fill: Stop filling username to invisible input fields
There is no reason to fill usernames into invisible input fields. We are
probably not leaking anything but it can break some apps (like TTRSS).
2017-09-01 15:48:02 +02:00
Ryan Roden-Corrent
6a292f9d56 Merge quteurls.feature into qutescheme.feature. 2017-08-28 07:18:14 -04:00
Florian Bruhin
79d3c49f26 Merge pull request #2909 from jgkamat/jay/fix-2900
Fix saving a session with --only-active-window
2017-08-28 07:58:25 +02:00
Florian Bruhin
25780eb2bc Merge pull request #2905 from rcorre/urlencode
Consistently format urls in history.
2017-08-28 07:56:45 +02:00
Florian Bruhin
6b795e0093 Merge pull request #2923 from gilbertw1/feature-add-format-json
implemented format_json userscript
2017-08-28 07:41:46 +02:00
Ryan Roden-Corrent
61a03a7808 Add quteurls.feature
Move Scenario: Open qute://version from misc.feature to quteurls.feature
See #2779.
2017-08-27 22:37:04 -04:00
Ryan Roden-Corrent
37ba256900 Ensure web-history-max-items has int64 as maxval.
See #2779.
2017-08-27 22:29:01 -04:00
Ryan Roden-Corrent
d2d55531e6 Remove double-registration of proxy factory.
Due to a bad merge, proxy.init() was called twice.
2017-08-27 22:27:34 -04:00
Bryan Gilbert
536c28a952 implemented format_json userscript 2017-08-27 21:37:58 -04:00
Florian Bruhin
8e92848356 Switch pyup to Mondays 2017-08-24 05:50:33 +02:00
Florian Bruhin
187facd5c7 Merge pull request #2915 from qutebrowser/pyup-scheduled-update-08-21-2017
Scheduled weekly dependency update for week 34
2017-08-24 05:51:37 +02:00
Ryan Roden-Corrent
b89caf0458 Use REPLACE when rebuilding completion table.
When upgrading from an old table that used different url formatting, two
entries might map to the same key, so we'll need to replace the previous
entry to avoid a primary key conflict.
2017-08-23 21:26:27 -04:00
Florian Bruhin
074cc1b723 Another one 2017-08-23 09:37:51 +02:00
Florian Bruhin
df909ca75b Fix sorting for vulture 2017-08-23 08:33:50 +02:00
Florian Bruhin
f1fc078dc1 Remove vulture exclude
Looks like it was removed in
d35e73deda,
and passing [] seems to be equal to the default nowadays anyways.
2017-08-22 08:08:28 +02:00
pyup-bot
8a0b7b9441 Update vulture from 0.24 to 0.25 2017-08-21 16:24:38 +02:00
pyup-bot
7f2e8d8147 Update vulture from 0.24 to 0.25 2017-08-21 16:24:36 +02:00
pyup-bot
6c83016657 Update pytest-rerunfailures from 2.2 to 3.0 2017-08-21 16:24:34 +02:00
pyup-bot
67e3de06c7 Update hypothesis from 3.18.0 to 3.19.1 2017-08-21 16:24:32 +02:00
pyup-bot
86a9487fb2 Update glob2 from 0.5 to 0.6 2017-08-21 16:24:29 +02:00
pyup-bot
dc61e8ecdf Update requests from 2.18.3 to 2.18.4 2017-08-21 16:24:27 +02:00
pyup-bot
8151a73d64 Update requests from 2.18.3 to 2.18.4 2017-08-21 16:24:25 +02:00
pyup-bot
0313982ac8 Update requests from 2.18.3 to 2.18.4 2017-08-21 16:24:23 +02:00
Ryan Roden-Corrent
d35b47c9d8 Regenerate history completion on version change.
Incrementing _USER_VERSION in the source will cause the
HistoryCompletion table to regenerate when users update.

This is currently necessary to support some recent formatting fixes, but
could be incremented again in the future for other changes.
2017-08-21 08:45:40 -04:00
Ryan Roden-Corrent
111846a909 Merge remote-tracking branch 'upstream/master' into configmerge 2017-08-20 21:18:47 -04:00
Ryan Roden-Corrent
722137ab29 Fix 2 end2end tests for config/completion merge. 2017-08-20 21:15:25 -04:00
Ryan Roden-Corrent
b5a6583559 Fix pylint/flake8/vulture errors. 2017-08-20 21:12:38 -04:00
Ryan Roden-Corrent
90c49b3fe7 Move bind completion to configmodels.
When in miscmodels, the config module was unable to find the function.
It appears to be some sort of circular import issue:

```
  File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/app.py", line 44, in <module>
    from qutebrowser.completion.models import miscmodels
  File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/completion/models/miscmodels.py", line 24, in <module>
    from qutebrowser.completion.models import completionmodel, listcategory, util
  File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/completion/models/util.py", line 24, in <module>
    from qutebrowser.config import config
  File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/config/config.py", line 223, in <module>
    class ConfigCommands:
  File "/home/rcorre/projects/contrib/qutebrowser/qutebrowser/config/config.py", line 314, in ConfigCommands
    @cmdutils.argument('command', completion=miscmodels.bind)
AttributeError: module 'qutebrowser.completion.models.miscmodels' has no attribute 'bind'
```

As configmodel imports util (and thereby config as well) it is unclear
to me why moving bind() to configmodel actually fixes this, but it does.
2017-08-20 21:12:38 -04:00
Ryan Roden-Corrent
0286e9ddf2 Fix completion tests after config merge. 2017-08-20 21:12:38 -04:00