Florian Bruhin
26d016b219
debug-console: Move cursor to end before inserting text. Fixes #162 .
2014-10-08 21:54:25 +02:00
Florian Bruhin
b238149e1e
Fix closing tabs with invalid URLs. Fixes #163 .
2014-10-08 21:23:03 +02:00
Florian Bruhin
ffdc176d9d
Make :set-cmd-text work without valid URL. Fixes #165 .
2014-10-08 21:18:26 +02:00
Florian Bruhin
b1ed3a1106
Add bugs to download workaround comment.
2014-10-08 21:12:21 +02:00
Florian Bruhin
71308b45ac
Add utils.qualname. Closes #169 .
2014-10-08 21:11:04 +02:00
Florian Bruhin
b5b240c3f6
Add a workaround for deleted DownloadsView. Fixes #167 .
2014-10-08 20:29:29 +02:00
Florian Bruhin
61a836fec5
Merge DownloadModel into DownloadManager.
2014-10-08 20:18:44 +02:00
Florian Bruhin
fe1215c74d
Clean up selection model properly in completion.
...
http://qt-project.org/doc/qt-5/qabstractitemview.html#setModel :
This function will create and set a new selection model, replacing any model
that was previously set with setSelectionModel(). However, the old selection
model will not be deleted as it may be shared between several views. We
recommend that you delete the old selection model if it is no longer required.
2014-10-08 17:36:59 +02:00
Florian Bruhin
de86a26473
Fix DownloadView __repr__ if model is None. Fixes #170 .
2014-10-08 17:19:51 +02:00
Florian Bruhin
b7f2a6d143
Use weakref for config.on_change. Fixes #156 .
2014-10-08 10:40:46 +02:00
Florian Bruhin
7956f2b8e2
Clean up :later timers correctly on exceptions.
2014-10-08 07:52:49 +02:00
Florian Bruhin
50f7067d6c
Add a :repeat command.
2014-10-08 07:46:21 +02:00
Florian Bruhin
d32a0c30c6
command: Remove unneeded has_count check.
2014-10-08 07:40:53 +02:00
Florian Bruhin
1a00d6168c
command: Check for handlers with count and no default.
2014-10-08 07:40:39 +02:00
Florian Bruhin
e2763da8d6
Remove checks if standard dirs exist from unittests.
2014-10-08 07:17:34 +02:00
Florian Bruhin
704df6f619
Fix docstring.
2014-10-08 07:16:27 +02:00
Florian Bruhin
04b5c0e781
Add CACHEDIR.TAG to cache. Closes #19 .
2014-10-08 07:16:00 +02:00
Florian Bruhin
ef0c72a99e
Create standard dirs correctly. Fixes #20 .
2014-10-08 07:11:25 +02:00
Florian Bruhin
b49b227c0d
Add an init method for standarddir.
...
This is another preparation for #19 and #20 .
2014-10-08 06:43:00 +02:00
Florian Bruhin
4abb5c8f36
Fix removing of eventfilter on shutdown if not present.
2014-10-08 06:38:03 +02:00
Florian Bruhin
f6695cac7d
Small whitespace fix.
2014-10-08 06:22:20 +02:00
Florian Bruhin
0e7a60abf6
Move utils.get_standard_dir to its own file.
...
This is a preparation for #19 and #20 because there are too many functions
related to standarddir in utils.
2014-10-08 06:20:31 +02:00
Florian Bruhin
86f08a8536
Clean up overriding of javaScriptPrompt.
2014-10-08 05:20:56 +02:00
Florian Bruhin
596afab1ac
Fix lint
2014-10-07 23:10:58 +02:00
Florian Bruhin
6349a6a213
Remove Emit:/Raise: from docstrings.
...
They got out-of-sync fast and provided no real benefit.
2014-10-07 23:08:37 +02:00
Florian Bruhin
f3ad1b71e6
Clean up objreg log text. This confused me in #159 .
2014-10-07 22:21:51 +02:00
Florian Bruhin
4c29d1eafd
Accept click focus in debug console. Fixes #142 .
2014-10-07 21:42:45 +02:00
Florian Bruhin
a17017ca46
Add logging when closing window
2014-10-07 21:36:25 +02:00
Florian Bruhin
ab4a33f907
Remove per-window eventfilter.
2014-10-07 21:34:51 +02:00
Florian Bruhin
6202477db5
Add --left/--right arguments to :tab-only. Closes #46 .
2014-10-07 20:56:47 +02:00
Florian Bruhin
4d092db114
Update outdated comment
2014-10-07 20:56:27 +02:00
Florian Bruhin
d8a917575d
Add a cmdutils.check_exclusive function.
2014-10-07 20:39:02 +02:00
Florian Bruhin
8ca5c09e69
Add --left/--right/--opposite to :tab-close.
...
This fixes the updated version of #46 .
2014-10-07 20:30:31 +02:00
Florian Bruhin
72a92c09dd
Move config transforming of to Qt values to configtypes.
...
This is a preparation for #46 .
2014-10-07 19:58:30 +02:00
Florian Bruhin
4092c48f92
Scroll debug console to bottom on output. Closes #158 .
2014-10-07 18:01:20 +02:00
Florian Bruhin
6af33d0e85
Handle empty lines correctly in debug console. Fixes #157 .
2014-10-07 17:56:39 +02:00
Florian Bruhin
12a72a4269
Revert "Disable line wrapping in debug console."
...
This reverts commit 179d108071
.
2014-10-07 17:41:03 +02:00
Florian Bruhin
3e31e88921
Only close window (instead of quitting) when closing last tab.
...
This also renames the 'quit' value for tabs->last-close to 'close' to avoid
confusion.
Fixes #154 .
2014-10-07 17:09:24 +02:00
Florian Bruhin
f9dc9f4acd
Fix rapid hinting. Closes #148 .
2014-10-07 07:45:29 +02:00
Florian Bruhin
068cc89458
Only start timer to process args if init was successful.
...
This fixes an exception when there is a config error (now displays normal error
box again).
2014-10-07 07:34:03 +02:00
Florian Bruhin
d2b3f89d78
Remove frame signal workaround for hints. See #152 .
2014-10-07 07:15:14 +02:00
Florian Bruhin
f0990aec32
Fix loading of quickmarks with fuzzy URLs
2014-10-07 07:04:49 +02:00
Florian Bruhin
881e45d9eb
Fix exception when saving quickmark (multiwin).
2014-10-07 07:02:29 +02:00
Florian Bruhin
1ad081a2db
Fix lint
2014-10-06 22:30:37 +02:00
Florian Bruhin
ae44aa01a6
Set initial focused window correctly.
2014-10-06 22:29:18 +02:00
Florian Bruhin
dfc10a7d40
Revert "Fix opening of quickstart."
...
This reverts commit 202b5e2bb9
.
window='current' really should work properly.
2014-10-06 22:24:29 +02:00
Florian Bruhin
12bbce2914
Spelling fix
2014-10-06 22:23:27 +02:00
Florian Bruhin
a19b6bf563
Fix :view-source
2014-10-06 22:23:12 +02:00
Florian Bruhin
15a2be877a
Pass win_id correctly with invalid_url_error.
2014-10-06 22:22:59 +02:00
Florian Bruhin
202b5e2bb9
Fix opening of quickstart.
2014-10-06 22:16:52 +02:00
Florian Bruhin
572dc34c42
Fix url passed to url_invalid_error.
2014-10-06 22:15:35 +02:00
Florian Bruhin
08fdfebb50
Fix import of urlutils for url_invalid_error.
2014-10-06 22:15:26 +02:00
Florian Bruhin
fbb45953db
Split parsing of initial args into three functions.
2014-10-06 22:15:11 +02:00
Florian Bruhin
dfb4e283e3
Remove unused import.
2014-10-06 22:14:57 +02:00
Florian Bruhin
105c25bc5f
Merge branch 'multiwin'
...
Conflicts:
qutebrowser/app.py
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/keyinput/modeman.py
qutebrowser/network/networkmanager.py
qutebrowser/widgets/mainwindow.py
qutebrowser/widgets/statusbar/command.py
qutebrowser/widgets/statusbar/prompt.py
qutebrowser/widgets/statusbar/prompter.py
qutebrowser/widgets/tabbedbrowser.py
2014-10-06 22:03:58 +02:00
Florian Bruhin
de37ed64ca
Remove FIXME
2014-10-06 21:30:24 +02:00
Florian Bruhin
fd9a3fc5e7
Clean up mainwindow import mess.
2014-10-06 21:24:07 +02:00
Florian Bruhin
ecd31a6450
Add tab/window support to :help
2014-10-06 20:40:00 +02:00
Florian Bruhin
9281fa3992
Fix lint/bugs
2014-10-06 19:53:50 +02:00
Florian Bruhin
796dce86ae
Remove go_back() and go_forward() from WebView.
...
If we use these in commands.py, we spawn a new window before checking if we can
go back/forward - but we want to check that before opening a new window.
2014-10-06 19:47:35 +02:00
Florian Bruhin
d2abd06513
Add missing keybindings for window actions.
2014-10-06 19:40:28 +02:00
Florian Bruhin
8eb0489357
Add rapid window hinting.
2014-10-06 19:39:48 +02:00
Florian Bruhin
52e72a8bec
Fix window spawning with hints.
2014-10-06 18:47:55 +02:00
Florian Bruhin
6324751af6
More window support.
2014-10-06 17:58:40 +02:00
Florian Bruhin
2cd4642ece
Pass window ID to scheme handlers.
2014-10-06 08:27:15 +02:00
Florian Bruhin
7e209dc285
Print tab registries in :debug-all-objects.
2014-10-06 07:41:34 +02:00
Florian Bruhin
d8cd599096
Fix wrong 'is' check.
2014-10-06 07:41:26 +02:00
Florian Bruhin
85ead4273b
Register tab registry under window registry with ID.
2014-10-06 07:41:05 +02:00
Florian Bruhin
d3121034df
Revert "Store window registries in objreg."
...
This reverts commit dfd3b3d9c4
.
It turns out this makes it very hard to remove the window from the window
registry at the right time.
2014-10-05 23:09:35 +02:00
Florian Bruhin
180d6e45ef
Fix closeEvent of MainWindow.
2014-10-05 23:09:04 +02:00
Florian Bruhin
d260b26105
Fix objreg._get_window_registry when non-mainwindow window is focused.
2014-10-05 22:41:44 +02:00
Florian Bruhin
dfd3b3d9c4
Store window registries in objreg.
2014-10-05 22:17:29 +02:00
Florian Bruhin
b6393a1841
Get rid of meta registry
2014-10-05 21:50:14 +02:00
Florian Bruhin
6dc997a971
Remove processEvent hack which doesn't help. See #147 .
2014-10-05 21:29:01 +02:00
Florian Bruhin
0d2ce778f3
Ignore on_current_changed when last tab is closed. Fixes #146 .
2014-10-05 19:47:12 +02:00
Florian Bruhin
4dcaa1fdec
Be more forgiving when validating URLs. Fixes #141 .
2014-10-03 16:58:30 +02:00
Florian Bruhin
18ff6ea06a
Fix line breaking in debugging console. Fixes #144 .
2014-10-03 12:37:32 +02:00
Florian Bruhin
179d108071
Disable line wrapping in debug console.
...
For some reason this does not fix #144 .
2014-10-03 12:24:07 +02:00
Florian Bruhin
0a6a8b4b4a
Don't parse HTML in debug console. Fixes #143 .
2014-10-03 12:20:39 +02:00
Florian Bruhin
22b48ad248
Open quickstart page on first start.
...
Fixes #4 .
2014-10-03 08:39:33 +02:00
Florian Bruhin
892b54e153
Fix saving of config.
2014-10-02 22:51:59 +02:00
Florian Bruhin
5eda621a7c
Clean up KeyConfParser __init__ and make it work with None.
...
Fixes #137 .
2014-10-02 22:49:58 +02:00
Florian Bruhin
ab5acdc3ad
Clean up ConfigManager __init__ and make it work with None.
...
Fixes parts of #137 .
2014-10-02 22:45:47 +02:00
Florian Bruhin
337574f40f
Fix lint
2014-10-02 22:25:48 +02:00
Florian Bruhin
a8304d03ea
Clean up get_standard_dir
2014-10-02 22:24:08 +02:00
Florian Bruhin
e74fa71a0a
Seprate data/config dirs on Windows.
...
See #21 .
2014-10-02 22:12:45 +02:00
Florian Bruhin
086de1b508
Rename cmd_history to cmd-history.
...
For consistency with the other stuff, why not.
Also we broke that file with the last commit anyways.
2014-10-02 22:12:24 +02:00
Florian Bruhin
d3c9bab01a
Move state/cmd_history from config to data dir.
...
See #21 .
2014-10-02 22:12:24 +02:00
Florian Bruhin
3a66937205
Clean up argument handling in get_standard_dir
2014-10-02 22:12:24 +02:00
Florian Bruhin
b20536d472
Move handling of --confdir into get_standard_dir
2014-10-02 21:54:42 +02:00
Florian Bruhin
e4e8d16ee8
Fix crash on error pages with URLs not encodable in latin1.
...
It seems PyQt does some implicit latin1 encoding when we set the content
attribute to a string rather than a bytes object.
Fixes #127 .
2014-10-02 06:28:49 +02:00
Florian Bruhin
00949db2cf
Add testcases for jinja.
...
This was an attempt to get a breaking test for #127 but it seems jinja isn't
actually the issue.
2014-10-02 06:22:06 +02:00
Florian Bruhin
c75563907a
Fix getting URL in :view-source.
...
Fixes #128 .
2014-10-02 06:06:08 +02:00
Florian Bruhin
d674b90240
Clean up FIXMEs and add github URLs
2014-10-01 22:23:27 +02:00
Florian Bruhin
2df276085c
Process events before creating BrowserPage.
2014-09-30 08:07:45 +02:00
Florian Bruhin
85f8366028
Fix lint
2014-09-30 07:49:01 +02:00
Florian Bruhin
f5a4d3a184
Move show_prompt/hide_prompt signals from prompt to prompter.
2014-09-30 07:37:31 +02:00
Florian Bruhin
b958d07869
prompter: Show prompt when restoring context.
...
This fixes being locked in prompt mode with no prompt when a website asks a
javascript question while another one is still visible.
2014-09-30 07:14:14 +02:00
Florian Bruhin
6b8ad67558
statusbar: Ignore subsequent _show_prompt_widget.
...
If it's already shown, we don't want to mess with stuff again.
2014-09-30 07:13:37 +02:00
Florian Bruhin
52ea924cbe
prompter: Override locked mode for questions.
...
This fixes a crash ([1], "ValueError: Mode KeyMode.yesno not on mode stack!")
when a website asks a second javascript question (prompt/alert/confirm) while
another one is still running.
[1] http://paste.the-compiler.org/view/8c39f5ea
2014-09-30 07:11:54 +02:00
Florian Bruhin
8864c042c8
modeman: Make it possible to override a locked mode.
2014-09-30 07:11:37 +02:00
Florian Bruhin
61ea26b7b2
Fix str() of ConfigValue
2014-09-30 06:32:51 +02:00
Florian Bruhin
ce8409feb2
Add multi window support to :restore/:restart.
2014-09-29 22:37:46 +02:00
Florian Bruhin
6aeecb3803
Fix lints/bugs
2014-09-29 20:36:53 +02:00
Florian Bruhin
686f82c5c6
webview: Remove dead search method.
2014-09-29 20:17:22 +02:00
Florian Bruhin
e031cc60c8
tabbedbrowser: Don't store a list of tabs.
2014-09-29 20:17:11 +02:00
Florian Bruhin
106ad9f4ed
userscripts: Don't store a list of runners.
2014-09-29 20:16:54 +02:00
Florian Bruhin
865389bb34
Make CommandRunner a QObject.
2014-09-29 20:16:38 +02:00
Florian Bruhin
45ac2e4835
Fix getting URL for startup commands.
2014-09-29 19:56:37 +02:00
Florian Bruhin
42a1d7028d
Move :later back from commands to utilcmds.
2014-09-29 19:56:25 +02:00
Florian Bruhin
0cf8abab7c
Fix running of startup commands.
2014-09-29 19:56:13 +02:00
Florian Bruhin
714c9d8b01
Add win_id parameter to commands which need it.
2014-09-29 19:14:11 +02:00
Florian Bruhin
24c48df988
Open about:blank if opening startpage fails.
2014-09-29 19:13:31 +02:00
Florian Bruhin
6e61f4c586
Support opening multiple windows via init args.
2014-09-29 18:50:46 +02:00
Florian Bruhin
e6fe358d73
Clean up correctly when a window is closed.
2014-09-29 10:43:06 +02:00
Florian Bruhin
b84eb6aeb0
Add missing utilcmds import.
2014-09-29 08:52:00 +02:00
Florian Bruhin
26604a683b
Fix lint
2014-09-29 07:47:32 +02:00
Florian Bruhin
cdb2e34513
Use collections.UserDict for LineConfigParser.
2014-09-29 07:41:39 +02:00
Florian Bruhin
75ba75a0d7
Check arguments against None in objreg.
2014-09-29 07:17:11 +02:00
Florian Bruhin
895f51083d
Some more objreg fixes for multi-window.
2014-09-29 07:17:01 +02:00
Florian Bruhin
36f7ff6154
Fix some objreg.get calls.
2014-09-28 23:23:02 +02:00
Florian Bruhin
9533312e0d
Fix event filter when a non-Mainwindow dialog has an event.
2014-09-28 22:53:24 +02:00
Florian Bruhin
16c067e32d
Simplify showing of main windows.
2014-09-28 22:46:37 +02:00
Florian Bruhin
2dea47b162
Register prompt per window
2014-09-28 22:44:12 +02:00
Florian Bruhin
cc0e164dcf
First attempt at adding a --window to commands.
2014-09-28 22:41:43 +02:00
Florian Bruhin
d87b0bf301
Fix pyqtSlot error for downloads.
2014-09-28 22:41:11 +02:00
Florian Bruhin
7e017e66a0
Fix basekeyparser tests.
2014-09-28 22:24:49 +02:00
Florian Bruhin
dc7b32e460
Fix lint
2014-09-28 22:23:37 +02:00
Florian Bruhin
fb6cb62f93
First attempt at multi-window support.
2014-09-28 22:13:14 +02:00
Florian Bruhin
64a119afb2
Don't use signals for on_config_changed.
2014-09-28 11:27:52 +02:00
Florian Bruhin
65d1d21d2e
Always use a list for namedtuple.
2014-09-28 00:43:08 +02:00
Florian Bruhin
0fadf6b091
Use a list as items-argument for usertypes.enum
2014-09-28 00:42:53 +02:00
Florian Bruhin
8636562579
Move config init out of Application
2014-09-28 00:27:22 +02:00
Florian Bruhin
86fdf981e3
Refactor init
2014-09-28 00:18:57 +02:00
Florian Bruhin
c9d5928dce
Fix lint
2014-09-27 23:21:13 +02:00
Florian Bruhin
8635dc8848
Make it possible to go back/forward in a new tab.
2014-09-27 23:14:39 +02:00
Florian Bruhin
17f2241bc0
Add a :tab-clone command.
2014-09-27 23:13:11 +02:00
Florian Bruhin
4410536f69
Refactor :undo and save/restore history.
2014-09-27 22:56:50 +02:00
Florian Bruhin
4e42ff1304
Move tab_id_gen and add tab_id to webview repr.
2014-09-26 16:44:41 +02:00
Florian Bruhin
36fd2e5c7f
Improve __repr__ methods.
2014-09-26 15:48:24 +02:00
Florian Bruhin
1960cfe114
Really fix keyevent_to_string.
2014-09-26 07:31:59 +02:00
Florian Bruhin
27117246b7
Fix modifier tests on OS X
2014-09-26 07:15:54 +02:00
Florian Bruhin
99da7b697b
Fix lint on OS X
2014-09-26 07:12:08 +02:00
Florian Bruhin
d4fdbf5190
Disable OS X focus rect for MinimalLineEditMixin
2014-09-25 22:58:04 +02:00
Florian Bruhin
f8f0c69d79
Fix shutdown before prompter is alive.
2014-09-25 22:56:22 +02:00
Florian Bruhin
f421b7174f
Add Ctrl+C shortcut to delete line in debug console.
2014-09-25 22:48:49 +02:00
Florian Bruhin
d1fdd5e776
Bump up default font size on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
cdb33a04cc
Fix Ctrl-key on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
538d467c8d
Set default geometry properly on first run.
2014-09-25 22:46:25 +02:00
Florian Bruhin
01159bad86
Fix division by zero in tabSizeHint on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
2ebb0063be
Really fix version info on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
66d36442d7
Fix version info on OS X
2014-09-25 21:33:03 +02:00
Florian Bruhin
9855ad6906
tabbedbrowser: Connect cur_load_started only once.
2014-09-25 19:08:15 +02:00
Florian Bruhin
c188c6986d
Call on_mode_entered only once for hints.
2014-09-25 19:06:38 +02:00
Florian Bruhin
0494bc3763
Improve modeman.maybe_leave logging/exception.
2014-09-25 18:45:16 +02:00
Florian Bruhin
6b459f43f1
Improve :debug-all-objects output.
2014-09-25 18:17:52 +02:00
Florian Bruhin
1239efa615
Set application title to "qutebrowser" on tabs without title.
2014-09-25 17:39:56 +02:00
Florian Bruhin
7649dca2ef
tabbedbrowser: Improve titleChanged logging.
2014-09-25 17:36:40 +02:00
Florian Bruhin
f294e28fca
Remove change_title signal in QWebPage.
...
When emitting it inside acceptNaviationRequest we don't know if javascript will
open a new window, so we could end up setting the title for the *wrong*
(current) tab.
It seems there isn't any good solution to this problem - in
QWebView.createWindow we won't know what the URL is - so we currently just
leave it blank.
2014-09-25 17:34:55 +02:00
Florian Bruhin
7b8829286c
Merge branch 'objreg'
2014-09-25 08:08:08 +02:00
Florian Bruhin
55e2ccabf5
Fix lint
2014-09-25 07:58:08 +02:00
Florian Bruhin
143fdc5b9f
Register tab registry in meta registry.
2014-09-25 07:50:07 +02:00
Florian Bruhin
1e7861660e
Add 'meta' scope to objreg.
2014-09-25 07:49:46 +02:00
Florian Bruhin
78949a8c1b
Use object registry for hintmanager.
2014-09-25 07:49:45 +02:00
Florian Bruhin
e8ce45c440
Add a tab-scope object registry.
2014-09-25 07:49:45 +02:00
Florian Bruhin
4067b584ec
Add a registry argument to objreg.register.
2014-09-25 07:43:14 +02:00
Florian Bruhin
e527db1560
Add scope argument to cmdutils.register/commands.
2014-09-25 07:41:51 +02:00
Florian Bruhin
df5ac3ab2f
Use object registry for keyparsers.
2014-09-25 07:41:18 +02:00
Florian Bruhin
8421ff7ad0
Fix :restart when installed as Python egg with launcher
2014-09-25 07:07:27 +02:00
Florian Bruhin
e029139764
Fix exception when adding quickmark with empty name.
2014-09-25 06:56:25 +02:00
Florian Bruhin
c77057e88e
Add a scope parameter to objreg functions.
2014-09-25 00:30:52 +02:00
Florian Bruhin
4783df8c32
Avoid download_get signal.
2014-09-25 00:29:29 +02:00
Florian Bruhin
c19b8fe982
Fix tests for object registry.
2014-09-24 23:11:17 +02:00
Florian Bruhin
34a5ad48b2
Don't pass prompt object to prompter.
2014-09-24 22:25:11 +02:00
Florian Bruhin
027e7e054e
Remove obsolete EnumBase usertype.
2014-09-24 22:25:11 +02:00
Florian Bruhin
05ff908c4f
Update attributes in docstrings.
2014-09-24 22:25:11 +02:00
Florian Bruhin
f2b46dc2e9
Remove srcmodel attribute from completionfilter.
2014-09-24 22:25:11 +02:00
Florian Bruhin
cb35452cf0
Remove unused flag for keyparser.
2014-09-24 22:25:11 +02:00
Florian Bruhin
62e55499eb
Privatize all attributes which aren't needed from the outside.
2014-09-24 22:25:11 +02:00
Florian Bruhin
75da8a7f1b
Add missing parent=None
2014-09-24 22:25:11 +02:00
Florian Bruhin
507354c8d1
Use object registry for Prompt in Prompter.
2014-09-24 22:25:10 +02:00
Florian Bruhin
8cb6ba01e3
Use object registry for TabbedBrowser in SignalFilter.
2014-09-24 22:25:10 +02:00
Florian Bruhin
59058361b8
Add missing objreg import in browser.webpage.
2014-09-24 22:25:10 +02:00
Florian Bruhin
aa5e1922ef
Remove _view attribute in BrowserPage.
2014-09-24 22:25:10 +02:00
Florian Bruhin
6a5c9ba138
Use object registry for CompletionView.
2014-09-24 22:25:10 +02:00
Florian Bruhin
7e8e9ee21f
Get rid of _page attribute of WebView
2014-09-24 22:25:10 +02:00
Florian Bruhin
9868721cc7
Use object registry for webview.tabbedbrowser.
2014-09-24 22:25:10 +02:00
Florian Bruhin
b119100321
Get rid of _tabs attribute in CommandDispatcher.
2014-09-24 20:21:43 +02:00
Florian Bruhin
5e8144fafa
Move cntwidget to commands.
2014-09-24 19:53:31 +02:00
Florian Bruhin
fd9c4b860a
Use object registry for url_stack.
2014-09-24 07:32:05 +02:00
Florian Bruhin
387622623d
Detach meta object registry from application.
2014-09-24 07:27:32 +02:00
Florian Bruhin
b0a9ecf094
Detach object registry from application.
2014-09-24 07:13:53 +02:00
Florian Bruhin
aa646463b0
Also use objreg API in app
2014-09-24 07:10:17 +02:00
Florian Bruhin
3c2e584c2a
Make pylint shut up with _UNSET object.
2014-09-24 07:07:31 +02:00
Florian Bruhin
3f02451828
Move object registry to its own file.
2014-09-24 07:06:45 +02:00
Florian Bruhin
b121ceef21
Use object registry for last focused tab.
2014-09-24 06:41:51 +02:00
Florian Bruhin
6090bf418d
Add utils.delete_object()
2014-09-24 06:41:39 +02:00
Florian Bruhin
d32d6c9b28
Allow a default value for utils.get_object.
2014-09-24 06:41:22 +02:00
Florian Bruhin
a2d3ca6565
Make it possible to update an object in the object registry.
2014-09-24 06:25:08 +02:00
Florian Bruhin
908a69af18
Better __repr__s
2014-09-23 23:31:17 +02:00
Florian Bruhin
9aa65a2341
Fix lint and bugs
2014-09-23 23:17:36 +02:00
Florian Bruhin
2b60cdb64c
Object names cleanup
2014-09-23 23:05:55 +02:00
Florian Bruhin
04be586bca
Use object registry for keyconfig.
2014-09-23 22:37:41 +02:00
Florian Bruhin
fe5d9939b9
Move debug console from app to utilcmd
2014-09-23 22:31:26 +02:00
Florian Bruhin
90820126b4
Update comment
2014-09-23 22:29:03 +02:00
Florian Bruhin
953e50721c
Use object registry for config.
2014-09-23 22:28:28 +02:00
Florian Bruhin
07dde5be80
Fix downloading (getting messagebrige object).
2014-09-23 22:22:44 +02:00
Florian Bruhin
b818bc5896
Use object registry for downloadmanager.
2014-09-23 22:22:03 +02:00
Florian Bruhin
7a7b397c15
Use object registry for cmd-history.
2014-09-23 22:17:25 +02:00
Florian Bruhin
8af8e3530f
Use object registry for args.
2014-09-23 22:13:10 +02:00
Florian Bruhin
297e37fdf2
Remove legacy instance= parameter support.
2014-09-23 22:08:05 +02:00
Florian Bruhin
37dbfde6ac
Use object registry for app.
2014-09-23 22:06:46 +02:00
Florian Bruhin
a32ed36ba6
Use object registry for mainwindow.
2014-09-23 22:05:00 +02:00
Florian Bruhin
a76c4c8ba5
Use object registry for tabbedbrowser.
2014-09-23 22:01:46 +02:00
Florian Bruhin
487300f926
Use object registry for prompter.
2014-09-23 21:56:29 +02:00
Florian Bruhin
ffaf4f0cb0
Use object registry for completion.
2014-09-23 21:50:34 +02:00
Florian Bruhin
40812f81b6
Use object registry for status-cmd.
2014-09-23 21:50:34 +02:00
Florian Bruhin
9a3ceebf2e
Use object registry for completer.
2014-09-23 21:39:42 +02:00
Florian Bruhin
f5b1d3ce4d
Use object registry for command-dispatcher.
2014-09-23 21:35:08 +02:00
Florian Bruhin
5f45d3de60
Use object registry for modeman.
2014-09-23 20:02:48 +02:00
Florian Bruhin
d441471a17
Use object registry for app._timers.
2014-09-23 19:53:48 +02:00
Florian Bruhin
184babbd84
Remove destroyed QObjects from ObjectRegistry.
2014-09-23 19:53:48 +02:00
Florian Bruhin
58be65f4f0
Use object registry for messagebridge.
2014-09-23 19:53:48 +02:00
Florian Bruhin
1d535ae300
Use object registry for stateconfig.
2014-09-23 19:53:48 +02:00
Florian Bruhin
21bdf517b7
Use object registry for searchrunner.
2014-09-23 19:53:48 +02:00
Florian Bruhin
68cfe499fc
Use object registry for rl_bridge.
2014-09-23 19:53:48 +02:00
Florian Bruhin
ab95234dad
Add object registry support to command handler.
2014-09-23 19:53:48 +02:00
Florian Bruhin
10eb849ae7
Fix lint
2014-09-23 19:53:47 +02:00
Florian Bruhin
10f3c47ae2
Add __repr__ for cookies/cache.
2014-09-23 19:53:47 +02:00
Florian Bruhin
aa681f5ad2
Merge get_all_widgets into get_all_objects.
2014-09-23 19:53:47 +02:00
Florian Bruhin
30209f531e
Improve get_all_objects output.
2014-09-23 19:53:47 +02:00
Florian Bruhin
9e5d8b2480
Add a meta-registry.
2014-09-23 19:53:47 +02:00
Florian Bruhin
dce5289b69
Rename global registry from obj to registry.
2014-09-23 19:53:47 +02:00
Florian Bruhin
dc7ad3e2de
Use a normal UserDict for ObjectRegistry.
2014-09-23 19:53:46 +02:00
Florian Bruhin
ca2be960df
Use object registry for cache/cookiejar.
2014-09-23 19:53:20 +02:00
Florian Bruhin
3b3675d1af
utils: Add helper functions get_object/register_object.
2014-09-23 19:53:15 +02:00
Florian Bruhin
2694ab2e80
app: Make commandrunner/debugconsole private.
2014-09-23 19:51:52 +02:00
Florian Bruhin
097645ae8e
app: Support object registry in get_all_objects.
2014-09-23 19:51:52 +02:00
Florian Bruhin
981604fc8b
Add initial object registry.
2014-09-23 19:51:52 +02:00
Florian Bruhin
1ce1c91d69
app: Refactor get_all_objects.
2014-09-23 19:51:52 +02:00
Florian Bruhin
698e4049d3
Fix :bind command.
2014-09-23 17:40:56 +02:00
Florian Bruhin
f4876c7f4f
Split docutils from utils
2014-09-23 04:22:51 +02:00
Florian Bruhin
9954a08ea2
Fix commands with ignore_args=True (e.g. :restart)
2014-09-22 22:46:03 +02:00
Florian Bruhin
a4079bb39e
Split :navigate into several functions
2014-09-22 22:36:31 +02:00
Florian Bruhin
d5a294ae55
commands: Move tab opening to _open functions.
2014-09-22 22:27:19 +02:00
Florian Bruhin
207bb00c50
Add increment/decrement to :navigate
2014-09-22 21:51:09 +02:00
Florian Bruhin
4213550206
Add :navigate up
2014-09-22 21:16:21 +02:00
Florian Bruhin
4615d22a5a
browser.commands: Refactor :navigate.
2014-09-22 21:08:11 +02:00
Florian Bruhin
9145ba9656
Adjust comment
2014-09-22 21:03:01 +02:00
Florian Bruhin
51413094bf
Merge prev-page/next-page into a navigate command.
2014-09-22 21:01:52 +02:00
Florian Bruhin
bc01f3a780
Fix spelling of temporarily
2014-09-22 20:44:07 +02:00
Florian Bruhin
e26606b0d6
Add /usr/bin/env to shebangs
2014-09-22 20:21:00 +02:00
Florian Bruhin
688b9a57cb
Add missing is_visible check for hints.
2014-09-22 20:06:17 +02:00
Florian Bruhin
812a0fdd41
Merge branch 'newcmd'
...
Conflicts:
.flake8
pkg/PKGBUILD.qutebrowser-git
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/config/configdata.py
qutebrowser/network/qutescheme.py
qutebrowser/test/config/test_configtypes.py
qutebrowser/utils/utils.py
2014-09-22 19:09:48 +02:00
Florian Bruhin
53b617590f
Maybe fix segfault on download errors.
2014-09-22 17:56:23 +02:00
Florian Bruhin
7cf9989bff
Fix text color in command right click menu
2014-09-22 13:24:00 +02:00
Florian Bruhin
def417b8a5
Check if docs are up to date if running from git repo.
2014-09-21 22:15:56 +02:00
Florian Bruhin
81b6a92183
Add error if help was not found
2014-09-21 21:21:41 +02:00
Florian Bruhin
84cdb30bcb
webelem: Avoid unnecessary ::geometry calls
2014-09-19 17:39:37 +02:00
Florian Bruhin
658053842e
hints: Wrap elements after checking is_visible.
...
Wrapping thousands of elements is really slow (>3 seconds for hinting on a
reddit page, because we wrap ~2500 elements with 50 methods each), so we try to
filter the elements first before wrapping them, as the visible elements will be
much less.
2014-09-19 12:32:28 +02:00
Florian Bruhin
2686278b48
webelem: Make it possible to use is_visible with unwrapped elements.
2014-09-19 12:30:38 +02:00
Florian Bruhin
bc884ed51e
webelem: Refuse to wrap a wrapper in WebElementWrapper.
2014-09-19 12:28:23 +02:00
Florian Bruhin
a0cc55037e
webelem: Get rid of functools.wraps/functools.update_wrapper.
2014-09-19 11:35:10 +02:00
Florian Bruhin
1eb9bb079c
Hide scrollbars via CSS.
2014-09-19 00:37:55 +02:00
Florian Bruhin
1bc5160453
Make it possible to use CSS strings in ui->user-stylesheet.
2014-09-19 00:35:17 +02:00
Florian Bruhin
c3531de71a
Clean up autohide and make it work on start.
2014-09-18 19:06:43 +02:00
Florian Bruhin
076ed43ec0
Add auto-hide option for tabs.
2014-09-18 18:15:37 +02:00
Florian Bruhin
906a049382
Fix lint
2014-09-18 17:25:48 +02:00
Florian Bruhin
7f76c3ba13
safe_shlex_split: cleanup and don't do double-lexing
2014-09-18 16:58:38 +02:00
Florian Bruhin
1c1534b5f6
safe_shlex_split: Use real lexer object and handle ' correctly.
2014-09-18 16:57:07 +02:00
Florian Bruhin
0c4d15ea5a
safe_shlex_split: Fix broken \' in test.
2014-09-18 16:56:50 +02:00
Florian Bruhin
7de0b85dda
safe_shlex_split: Adjust docstring
2014-09-18 16:15:57 +02:00
Florian Bruhin
6a86924e60
safe_shlex_split: Give up after 3 tries.
2014-09-18 16:15:37 +02:00
Florian Bruhin
2e35685fe1
safe_shlex_split: Don't split None.
2014-09-18 16:15:13 +02:00
Florian Bruhin
38108c68a2
Add tests for single quote with safe_shlex_split.
2014-09-18 16:14:31 +02:00
Florian Bruhin
b2340611f2
Allow - in font names.
2014-09-18 13:25:52 +02:00
Florian Bruhin
cef1dfe368
Remove exception handling code for qutescheme.
...
The exceptions now get handled by @prevent_exceptions on the createRequest
method of the NetworkManager, causing the exception handler to pop up properly.
2014-09-16 22:08:10 +02:00
Florian Bruhin
3bded60ba6
Prevent exceptions in NetworkManager::createRequest.
2014-09-16 22:08:00 +02:00
Florian Bruhin
644dfe53e2
Add a decorator to prevent Exceptions (to prevent segfaults).
2014-09-16 22:06:48 +02:00
Florian Bruhin
5eef6d422d
Better exception formatting and handling.
2014-09-16 08:20:19 +02:00
Florian Bruhin
2e419d413b
Catch exceptions in version.version() in CrashDialog.
2014-09-16 07:34:27 +02:00
Florian Bruhin
8f2ad91086
Fix lint
2014-09-16 07:34:07 +02:00
Florian Bruhin
c47fa840a0
network.qutescheme: Workaround for segfault on exceptions.
2014-09-16 07:16:30 +02:00
Florian Bruhin
4bab430c32
utils.version: Use programmatic imports.
2014-09-16 07:16:15 +02:00
Florian Bruhin
d039a29fc9
Move more logic into earlyinit from qutebrowser.py.
2014-09-16 06:39:39 +02:00
Florian Bruhin
3234d9a821
earlyinit refactor: Use programmatic imports.
2014-09-16 06:21:40 +02:00
Florian Bruhin
18e56eca90
earlyinit: Fix text for debian.
2014-09-16 05:24:20 +02:00
Florian Bruhin
55216e207f
configdata: Move Consolas further back in font list.
...
Consolas generally is quite a nice font, but in this font size it shows a lot
of bleeding and Courier New is much more readable, so we only use it as
fallback now.
2014-09-15 22:24:32 +02:00
Florian Bruhin
d1ddc8c6cb
Fix lint
2014-09-15 22:01:13 +02:00
Florian Bruhin
f5ecba0d07
Move exit logging to app.py for Python2 compatibility.
2014-09-15 21:55:38 +02:00
Florian Bruhin
19afa69d87
view_source: Add line numbers.
2014-09-15 18:19:56 +02:00
Florian Bruhin
175d25b3c4
Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
2014-09-15 18:01:20 +02:00
Florian Bruhin
3bd55b2140
Add keybinding for view_source.
2014-09-15 18:00:06 +02:00
Florian Bruhin
715aec991e
Add view_source command.
2014-09-15 17:59:54 +02:00
Florian Bruhin
14cc77ff42
Add pygments as dependency.
2014-09-15 17:59:33 +02:00
Florian Bruhin
34b0cf429c
command: Cleanup
2014-09-15 08:16:19 +02:00
Florian Bruhin
8a51aa759e
command: Clean up ParamType.
2014-09-15 07:46:50 +02:00
Florian Bruhin
e1d93fa3fa
Move inspect stuff from cmdutils to command.
2014-09-15 07:42:21 +02:00
Florian Bruhin
81aa08593b
hints: Ignore invalid href's instead of crashing.
2014-09-15 06:54:05 +02:00
Florian Bruhin
ad2435fa0b
hints: Small cleanup
2014-09-15 06:53:05 +02:00
Florian Bruhin
00193df99e
hints: Fix URL resolving crash with new WebElement API.
2014-09-15 06:52:34 +02:00
Florian Bruhin
f7c0f8f11e
Remove :get and use :set with ...? instead.
2014-09-15 06:24:15 +02:00
Florian Bruhin
22e6a26ec3
Fix function calls with changed attribute names.
2014-09-15 06:20:33 +02:00
Florian Bruhin
fa9d9b62b1
config: Use sectname/optname argument names.
2014-09-15 00:03:59 +02:00
Florian Bruhin
f2e68685d2
Fix doc generation with overridden argument names.
2014-09-15 00:03:39 +02:00
Florian Bruhin
4d3b3616a6
Fix lint
2014-09-14 23:56:19 +02:00
Florian Bruhin
063be350e4
cmdutils: Merge _param_to_argparse_args and _param_to_argparse_kw.
2014-09-14 23:34:55 +02:00
Florian Bruhin
66f0aa8d5f
cmdutils: Bind keyword-only arguments as flags.
2014-09-14 23:25:40 +02:00
Florian Bruhin
fe08052641
command: Don't handle varargs if they are None
2014-09-14 23:16:54 +02:00
Florian Bruhin
b9216bca15
Fix hint command arguments.
2014-09-14 23:16:35 +02:00
Florian Bruhin
1fd8fb57a6
Use *args for commands where possible.
2014-09-14 23:10:51 +02:00
Florian Bruhin
f1f05516b3
command: Fix handling of count when it's not given.
2014-09-14 23:06:52 +02:00
Florian Bruhin
b2058e2f0e
cmdutils: Default to nargs='+' for *args.
2014-09-14 22:56:02 +02:00
Florian Bruhin
d4f584684b
command: Iterate over function signature when calling instead over namespace.
2014-09-14 22:48:25 +02:00
Florian Bruhin
4b759c5513
cmdutils: Make sure functions don't have **kwargs.
2014-09-14 22:48:00 +02:00
Florian Bruhin
cd8d137dd6
cmdutils: Bail out if instance is given but function takes no self.
2014-09-14 22:47:18 +02:00
Florian Bruhin
319ea242da
cmdutils: raise TypeError instead of ValueError.
2014-09-14 22:46:48 +02:00
Florian Bruhin
ef31157f5e
cmdutils: Use inspect.getdoc
2014-09-14 22:09:01 +02:00
Florian Bruhin
3391896037
Disable workaround for PyQt 5.3.2
2014-09-14 21:12:03 +02:00
Florian Bruhin
74b45aea47
conftypes: Better handling of ShellCommand.
2014-09-13 00:42:16 +02:00
Florian Bruhin
fea3524443
Remove 'or None' in docs.
2014-09-13 00:37:07 +02:00
Florian Bruhin
38c341e3ea
Add count info in commands.
2014-09-13 00:33:54 +02:00
Florian Bruhin
80ef0782d5
Improve some docstrings.
2014-09-13 00:22:27 +02:00
Florian Bruhin
2336b5de43
Refactor qutehandlers so they are not classmethods.
2014-09-12 20:27:20 +02:00
Florian Bruhin
16caa9ba69
Handle qute://help more intuitively (load index.html)
2014-09-12 20:19:27 +02:00
Florian Bruhin
0c9d7723c8
Fix on_config_changed for tabbar (renamed to tabs)
2014-09-12 20:15:20 +02:00
Florian Bruhin
f2b10160cc
Handle IOError with qute://help.
2014-09-12 20:10:13 +02:00
Florian Bruhin
ab0e600977
Error if unknown sections are in the config.
2014-09-12 17:53:27 +02:00
Florian Bruhin
052fa8e277
Don't emit config changed signals during init.
...
When we're initializing anyways nobody got a config value yet, so emitting the
signals just will mean code gets executed twice.
This reduces the startup time by about 1-2 seconds.
2014-09-12 17:38:40 +02:00
Florian Bruhin
cd14cbbfb8
Handle changed config correctly for interpolated values.
2014-09-12 17:26:47 +02:00
Florian Bruhin
a796482c83
Support !-keysections, don't bind leave-mode in normal mode.
2014-09-12 07:33:52 +02:00
Florian Bruhin
e516589fe3
Fix double default keybindings.
2014-09-12 07:18:04 +02:00
Florian Bruhin
c0e8352c95
Allow unbinding keys.
2014-09-09 23:12:55 +02:00
Florian Bruhin
4fde56a942
Allow binding keys.
2014-09-09 23:05:28 +02:00
Florian Bruhin
277dab4069
keyconfparser: Add empty sections.
2014-09-09 22:38:14 +02:00
Florian Bruhin
95d8091205
Fix double bindings
2014-09-09 22:34:20 +02:00
Florian Bruhin
30e926abf6
Check duplicate keychains
2014-09-09 22:29:17 +02:00
Florian Bruhin
e3d16f3bbe
Full read-write support for key config.
2014-09-09 22:18:00 +02:00
Florian Bruhin
414ab88a0e
Fix lint
2014-09-09 18:32:18 +02:00
Florian Bruhin
91514ad6c0
Add missing keyconfparser file.
2014-09-09 13:42:25 +02:00
Florian Bruhin
6f03f08111
Make new key config work (readonly)
2014-09-09 07:43:27 +02:00
Florian Bruhin
64183b5a26
Start moving keybindings
2014-09-08 16:53:33 +02:00
Florian Bruhin
070d5ae300
Add more documentation.
2014-09-08 12:21:47 +02:00
Florian Bruhin
1220f0c5fd
Move webelem from utils to browser.
2014-09-08 10:30:05 +02:00
Florian Bruhin
6f22319158
webview: Fix insert mode check.
2014-09-08 10:23:18 +02:00
Florian Bruhin
25da8dd169
webelem: Fix debug output
2014-09-08 10:19:52 +02:00
Florian Bruhin
381b06e967
Fix lint
2014-09-08 07:44:32 +02:00
Florian Bruhin
5e6150e665
Add a :help command.
2014-09-08 07:36:18 +02:00
Florian Bruhin
0267dac2be
Add --help documentation
2014-09-08 07:36:18 +02:00
Florian Bruhin
fc70d700b2
cmdutils: Force metavar if choices are given.
2014-09-08 07:36:17 +02:00
Florian Bruhin
dcfb52847f
Nicer flag output in docs.
2014-09-08 07:36:17 +02:00
Florian Bruhin
4cf7e6e767
Add docstring for :quickmark-load.
2014-09-08 07:36:17 +02:00
Florian Bruhin
6674eedfae
cmdutils: Add default value type to multitype_conv tuple.
2014-09-08 07:36:17 +02:00
Florian Bruhin
13a2506c6a
argparser: Also catch TypeError for multitype_conv.
2014-09-08 07:36:17 +02:00
Florian Bruhin
47f42f9e5a
commands.argparser: Make type tuples a set().
2014-09-08 07:36:17 +02:00
Florian Bruhin
05f3809d01
Fix lint
2014-09-08 07:36:17 +02:00
Florian Bruhin
0a094c6e58
Refactor HintManager.start
2014-09-08 07:36:17 +02:00
Florian Bruhin
b453ae563e
Clean up docstring parsing and move it into qutebrowser for commands.
2014-09-08 07:36:17 +02:00
Florian Bruhin
b5f28b6ff2
commands.argparser: Make ArgumentParser take args, add name.
2014-09-08 07:36:17 +02:00
Florian Bruhin
a656c8cfb0
commands: Add initial --help argument support.
2014-09-08 07:36:17 +02:00
Florian Bruhin
32e24479b9
commands.cmdutils: Clean up decorator.
2014-09-08 07:36:17 +02:00
Florian Bruhin
03a0a1c599
commands: Handle ArgumentParser exit.
2014-09-08 07:36:17 +02:00
Florian Bruhin
57d51ad9bb
Lots of fixes for new command system.
...
Squashed commit:
- Fix getting current URL
- Get rid of *args for hints.
- Make enums work.
- Fix moving commands to utilcmds.
- Fix enums in argparse
- Fix arg splitting for hints.
- Fix default enum args.
- Fix argument splitting for hints if None is given.
- Fix set_cmd_text with flags and fix {url}.
- Fix unittests
- Fix tuple types for arguments.
- Fix scroll-page.
- Fix lint
- Fix open_target.
- Others
2014-09-08 07:36:17 +02:00
Florian Bruhin
d836e26107
Nicer debug printing of functions.
2014-09-08 07:36:17 +02:00
Florian Bruhin
a811f8cb07
Start initial newcmd stuff.
2014-09-08 07:36:17 +02:00
Florian Bruhin
84a034d7e9
More liberal quoting.
2014-09-08 07:35:18 +02:00
Florian Bruhin
522b408fde
utils.completer: Quote strings for completion.
2014-09-08 07:12:55 +02:00
Florian Bruhin
6b8c597d18
Remove unused import.
2014-09-04 20:35:26 +02:00
Florian Bruhin
b856bf3a47
Improve webelement API
2014-09-04 20:30:59 +02:00
Florian Bruhin
becc4490bc
Add FIXME to qurl
2014-09-03 22:56:54 +02:00
Florian Bruhin
b789d14513
Improve prev-page/next-page matching and logging.
2014-09-03 22:55:48 +02:00
Florian Bruhin
5ba3440369
Add details to colorama workaround.
2014-09-03 22:20:17 +02:00
Florian Bruhin
15b8c553c8
Fix rl-unix-line-discard by reimplementing QLineEdit::home.
2014-09-03 21:30:30 +02:00
Florian Bruhin
e3bb3af7ba
Make it possible to use pdb for debugging.
2014-09-03 13:31:01 +02:00
Florian Bruhin
71796e9528
Fix statusbar text when entering insert mode via hints.
...
Before, hints cleaned the statusbar text delayed, clearing the "==== INSERT
MODE ====" in the statusbar.
Now we only reset the text if it wasn't changed.
2014-09-03 11:51:24 +02:00
Florian Bruhin
3e904f4c52
Fix crash when using commands on startup which need a widget.
2014-09-03 11:32:56 +02:00
Florian Bruhin
ccfc0b3c19
Get rid of most @property's.
...
They were problematic because they're executing hidden code, and also PyQt
hides exceptions happening inside them.
2014-09-02 23:37:47 +02:00
Florian Bruhin
a2e457ccc3
Remove old Ubuntu workaround.
2014-09-02 20:45:25 +02:00
Florian Bruhin
4caec2becb
Document and mark workarounds.
2014-09-02 20:44:58 +02:00
Florian Bruhin
bcaba3f5ca
Rename tests to reflect renamed modules.
2014-09-02 08:27:53 +02:00
Florian Bruhin
83e9638d42
Add fancy URL to tests.
2014-09-02 08:21:53 +02:00
Florian Bruhin
e112038a8b
Handle IPv6 literals correctly.
2014-09-02 08:20:33 +02:00
Florian Bruhin
330af95778
Strip spaces in url string correctly.
2014-09-02 07:49:06 +02:00
Florian Bruhin
96c1d53222
urlutils: Strip URL before testing.
2014-09-02 07:11:01 +02:00
Florian Bruhin
892c02268a
Shut down NetworkManager before deleting WebPage.
...
Now that the QWebPage actually is a parent of the QNetworkAccessManager, first
setting the page to None and then deleting the QNetworkAccessManager will get
us a RuntimeError because the underlying C++ object is already gone.
2014-09-02 07:02:21 +02:00
Florian Bruhin
7813f8f0c2
Remove unused cookiejar NetworkManager, fix parenting.
...
Before, the QWebPage got passed to the QNetworkAccessManager as cookiejar,
causing no parent to be set. Now, the QWebPage actually owns the
QNetworkAccessManager.
2014-09-02 07:00:02 +02:00
Florian Bruhin
71a2ade637
Fix URL detection corner cases.
2014-09-02 06:53:52 +02:00
Florian Bruhin
2bf616ff78
Adjust QWebSettings paths.
2014-09-01 21:56:30 +02:00
Florian Bruhin
428d70c746
Add a network disk cache.
2014-09-01 19:42:21 +02:00
Florian Bruhin
6d97da7bcc
browser.downloads: Download with default name if path is given.
2014-09-01 17:51:49 +02:00
Florian Bruhin
0a646b110b
Store cookies in binary format.
...
We saved/opened cookies as UTF-8 which lead to an exception on saving with a
cookie with an รค in it.
ISO-8859-1 would be more appropriate, but we trust Qt to make the right choice
and don't re-encode anything now.
2014-09-01 16:22:01 +02:00
Florian Bruhin
e163478782
Handle Shift-Return keypresses correctly.
2014-08-30 14:38:34 +02:00
Florian Bruhin
c0a88bf3d0
qute:log: Scroll to bottom on load
2014-08-29 07:38:07 +02:00
Florian Bruhin
d8fa2e8ef0
Fix lint
2014-08-29 07:34:44 +02:00
Florian Bruhin
d059c468af
Merge branch 'ninja'
2014-08-29 07:33:43 +02:00
Florian Bruhin
f44896cc44
Add a VDEBUG logging level.
2014-08-29 07:33:37 +02:00
Florian Bruhin
2cc2e769c3
network.qutescheme: Make pylint shut up.
2014-08-29 07:07:21 +02:00
Florian Bruhin
1dce50309b
First steps at using jinja2 for qute:log.
2014-08-29 06:59:44 +02:00
Florian Bruhin
0f0929ac78
Use jinja for most qute:... pages.
2014-08-29 06:41:18 +02:00
Florian Bruhin
c9ea83ca7b
Fix lint
2014-08-29 06:14:52 +02:00