Commit Graph

13355 Commits

Author SHA1 Message Date
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
Ryan Roden-Corrent
5f45b9b40e Fix pylint and coverage for history. 2017-08-20 20:59:48 -04:00
Ryan Roden-Corrent
8c6133e29d Regenerate history completion table if needed.
If the HistoryCompletion table is removed, regenerate it from the
History table. This allows users to manually edit History, then remove
HistoryCompletion to prompt regeneration.

See #2903.
2017-08-18 07:39:36 -04:00
Jay Kamat
7073c33dce
Test for saving a session with --only-active-window 2017-08-17 22:27:40 -04:00
Ryan Roden-Corrent
c607537319 Consistently format urls in history.
Encode urls that are inserted into the history, but do not encode urls
for completion (other than removing passwords).
Also ensure that urls read from the history text file are formatted
consistenly with those added while browsing.

Fixes #2903.
2017-08-14 21:37:43 -04:00
Florian Bruhin
173688c748 Merge pull request #2904 from qutebrowser/pyup-scheduled-update-08-14-2017
Scheduled weekly dependency update for week 33
2017-08-14 22:11:12 +02:00
pyup-bot
7b1f3e36de Update vulture from 0.22 to 0.24 2017-08-14 16:19:24 +02:00
pyup-bot
bda5ac9bbf Update vulture from 0.22 to 0.24 2017-08-14 16:19:22 +02:00
pyup-bot
1581a68082 Update pytest from 3.2.0 to 3.2.1 2017-08-14 16:19:21 +02:00
pyup-bot
d0d27e7fb1 Update hypothesis from 3.16.1 to 3.18.0 2017-08-14 16:19:20 +02:00
pyup-bot
4f49e58d52 Update cheroot from 5.8.2 to 5.8.3 2017-08-14 16:19:18 +02:00
pyup-bot
29cc8ed272 Update wrapt from 1.10.10 to 1.10.11 2017-08-14 16:19:17 +02:00
pyup-bot
c00d35ea73 Update wrapt from 1.10.10 to 1.10.11 2017-08-14 16:19:16 +02:00
pyup-bot
f5ee01ab6a Update idna from 2.5 to 2.6 2017-08-14 16:19:14 +02:00
pyup-bot
5ebbe80cfe Update idna from 2.5 to 2.6 2017-08-14 16:19:13 +02:00
pyup-bot
843f14042b Update idna from 2.5 to 2.6 2017-08-14 16:19:11 +02:00
cryzed
085d1e9c10 :save-session --only-active-window implies --with-private for private windows 2017-08-14 00:30:45 +02:00