Commit Graph

2701 Commits

Author SHA1 Message Date
Florian Bruhin
8d07ec2235 test_conftypes: Add (broken) Font tests. 2014-08-05 17:08:16 +02:00
Florian Bruhin
0e645d9361 usertypes: Move QSS_FONT_REGEX to class. 2014-08-05 17:05:13 +02:00
Florian Bruhin
ec1b31a61c test_conftypes: Add more tests. 2014-08-05 15:01:29 +02:00
Florian Bruhin
1c24faeb92 conftypes: Treat rgb(...) etc. as valid for QssColor 2014-08-05 15:00:48 +02:00
Florian Bruhin
a287c8ac68 conftypes: if -> elif 2014-08-05 15:00:24 +02:00
Florian Bruhin
963fb40961 conftypes: Various bugfixes/cleanups/tests. 2014-08-05 14:16:15 +02:00
Florian Bruhin
7c54c20808 conftypes: Fix is_none in all types 2014-08-05 13:49:03 +02:00
Florian Bruhin
a117cf0405 test_conftypes: Add more tests. 2014-08-05 13:06:03 +02:00
Florian Bruhin
4dd4b465e2 conftypes: Fix minint/maxint validation in PercList. 2014-08-05 13:05:36 +02:00
Florian Bruhin
8402aa051a conftypes: Use slicing instead of rstrip.
"100%%".rstrip('%') would give use "100" instead of "100%" which is not what we
want.
2014-08-05 13:04:34 +02:00
Florian Bruhin
f414a0bf4b conftypes: More max >= min checkes. 2014-08-05 12:46:29 +02:00
Florian Bruhin
4ee722d8b1 conftypes: Fix none_ok for many types. 2014-08-05 12:45:53 +02:00
Florian Bruhin
66af4e8c0a conftypes: Fix String length check. 2014-08-05 12:44:37 +02:00
Florian Bruhin
8fdeab32c5 Add first tests for conftypes. 2014-08-05 07:27:29 +02:00
Florian Bruhin
98cc10b9c2 Check if maxlen/minlen make sense in conf.usertypes.String. 2014-08-05 07:26:48 +02:00
Florian Bruhin
036178147b Draw tabbar background correctly again. 2014-08-04 19:30:09 +02:00
Florian Bruhin
95df8a045c Don't use stylesheets anymore for QTabWidget.
When using stylesheets there, all children (i.e. the QWebView) use
QStyleSheetStyle as well, which means the bug at [1] will annoy us.

We had to write our own font parsing as we can't use stylesheets, but at least
the bug is gone...

https://bugreports.qt-project.org/browse/QTBUG-40263
2014-08-04 17:00:01 +02:00
Florian Bruhin
ee1b136807 Clean up pylint/noqa comments. 2014-08-04 03:47:09 +02:00
Florian Bruhin
3dc7a1b735 Lock mode while prompting. 2014-08-04 03:14:14 +02:00
Florian Bruhin
90f1d5851c Fix lint. 2014-08-03 00:58:59 +02:00
Florian Bruhin
acfc95e19d Simplify :hint by adding a 'fill' target. 2014-08-03 00:56:42 +02:00
Florian Bruhin
40aa387fb2 Whitespace fixes 2014-08-03 00:40:28 +02:00
Florian Bruhin
b68f22541c Merge tab-focus-last into tab-focus. 2014-08-03 00:39:39 +02:00
Florian Bruhin
d302886b87 Fix too long lines. 2014-08-03 00:36:35 +02:00
Florian Bruhin
9e73cba333 Improve command documentation. 2014-08-03 00:33:39 +02:00
Florian Bruhin
6c4b21117c Fix typo 2014-08-02 23:58:52 +02:00
Florian Bruhin
3467dd77ac Document the :hint command. 2014-08-02 23:46:27 +02:00
Florian Bruhin
355acfccd2 Remove editable hinting.
The code for it was removed some time ago, and fixing it would mean some
unneeded code duplication. Let's remove it and see if anyone complains.
2014-08-02 23:45:39 +02:00
Florian Bruhin
aa8d66f092 Improve settings value documentation. 2014-08-02 22:54:15 +02:00
Florian Bruhin
f8c995d58d Support multiline setting descriptions. 2014-08-02 22:53:57 +02:00
Florian Bruhin
e5c86a5337 Remove window-open-behaviour setting. 2014-08-02 21:30:20 +02:00
Florian Bruhin
de2f267607 Fix restarting/exceptions with URLs with spaces. 2014-08-02 19:49:15 +02:00
Florian Bruhin
b707987be0 Better logging on exit. 2014-08-02 19:40:24 +02:00
Florian Bruhin
3307c5f518 Shut down correctly while being asked a question. 2014-08-02 19:38:02 +02:00
Florian Bruhin
9a6bff315b Revert "widgets.statusbar.prompter: Use None for self.question instead of _busy."
This reverts commit 5d5f3c7f87.
2014-08-02 18:19:33 +02:00
Florian Bruhin
5d5f3c7f87 widgets.statusbar.prompter: Use None for self.question instead of _busy. 2014-08-02 17:58:33 +02:00
Florian Bruhin
ee1bdacf25 Show errors during prompt/command mode. 2014-08-02 17:45:51 +02:00
Florian Bruhin
2f4cd56033 bar: Make prompt color more important than insert color. 2014-08-02 17:05:28 +02:00
Florian Bruhin
1a449ef7de Log changing of statusbar color attributes. 2014-08-02 17:05:11 +02:00
Florian Bruhin
2b123bdeb9 Make it clearer we schedule an insertmode check if hittest is null. 2014-08-02 16:55:11 +02:00
Florian Bruhin
c1d9f70fd6 Make js alert/confirm messages a bit more clear. 2014-08-02 16:16:13 +02:00
Florian Bruhin
7d9bd17aff Fix error message when executing command in wrong mode. 2014-08-02 16:15:59 +02:00
Florian Bruhin
157975b0d4 widgets.webview: Add a cur_url property so the initial URL is available immediately. 2014-08-02 02:35:38 +02:00
Florian Bruhin
f6b26f0d56 Improve interrupt docs 2014-08-02 01:53:27 +02:00
Florian Bruhin
b0cfb281f4 shutdown correctly before mainwindow exists. 2014-08-02 01:12:05 +02:00
Florian Bruhin
2dfc599e3c Interrupt more forcefully with 3 times Ctrl+C. 2014-08-02 00:57:32 +02:00
Florian Bruhin
cdde060135 Call shutdown via a singleShot QTimer. 2014-08-02 00:53:30 +02:00
Florian Bruhin
df0558fb47 Add a --nowindow argument. 2014-08-02 00:47:04 +02:00
Florian Bruhin
3b16207bfc Delete network requests during shutdown. 2014-08-02 00:41:59 +02:00
Florian Bruhin
2691e6bb6b Remove unneeded colorama.init().
We don't want colorama to replace stdout/stderr, so we shouldn't call .init()
at all.
2014-08-01 23:47:44 +02:00
Florian Bruhin
9dd688095c Move late shutdown logging out of QApplication. 2014-08-01 23:45:12 +02:00
Florian Bruhin
246cff63ed Use singleShot timer to call QApplication.exit. 2014-08-01 23:26:33 +02:00
Florian Bruhin
f19a1db120 Clean up tab shutdown. 2014-08-01 23:23:31 +02:00
Florian Bruhin
6015bed786 widgets.tabbedbrowser: Fix closing tab with mouse. 2014-08-01 14:27:57 +02:00
Florian Bruhin
b6cd0dd600 Use sys.__stderr__ for faulthandler. 2014-08-01 00:55:18 +02:00
Florian Bruhin
ad1ba4c1f7 Remove eventfilter on shutdown 2014-07-31 23:09:59 +02:00
Florian Bruhin
9ccce461c9 Stop tab loading before removing. 2014-07-31 23:05:29 +02:00
Florian Bruhin
c04ad1de45 utils.debug.trace_lines: Improve output 2014-07-31 23:03:49 +02:00
Florian Bruhin
b56df7c955 utils.debug.trace_lines: Stop tracing if sys is None 2014-07-31 22:53:57 +02:00
Florian Bruhin
c27f8b69d6 Trace lines on shutdown with --debug. 2014-07-31 21:21:07 +02:00
Florian Bruhin
70d8163353 Write to stderr in utils.debug.trace_lines. 2014-07-31 21:20:51 +02:00
Florian Bruhin
8fedf1a9be Adjust shebangs to call python3 2014-07-31 21:14:05 +02:00
Florian Bruhin
c39bce79f6 Disable javascript/plugins when shutting down tab. 2014-07-31 20:45:18 +02:00
Florian Bruhin
682a395936 Shut down tabs while quitting 2014-07-31 20:40:21 +02:00
Florian Bruhin
55755262e1 Remove tab widgets properly when a tab is closed.
We forgot to do that which means we had a memory leak, and sound of tabs
continued to play when a tab was closed.
2014-07-31 19:34:30 +02:00
Florian Bruhin
d65fbb0b8c Fix mixed tabs/spaces. 2014-07-31 19:32:00 +02:00
Florian Bruhin
cda0f561aa Move removing of a tab out of close_tab. 2014-07-31 19:31:24 +02:00
Florian Bruhin
2358ed7d4c Remove 'Good bye' log 2014-07-31 01:07:43 +02:00
Florian Bruhin
371c40f815 Explicitely setPage to None in WebView's __del__. 2014-07-31 00:51:11 +02:00
Florian Bruhin
d47f13e69b Explicitely set qApp before/after calling exec_(). 2014-07-31 00:48:32 +02:00
Florian Bruhin
6859ca9301 Fix lint 2014-07-30 18:56:01 +02:00
Florian Bruhin
ed4e3e2a75 Remove redundant .replace() in utils.misc.key_to_string. 2014-07-30 18:55:34 +02:00
Florian Bruhin
ffe2c7f91d Use a string mapping for utils.misc.key_to_string. 2014-07-30 18:55:08 +02:00
Florian Bruhin
377706ec54 Handle not found crashlog gracefully 2014-07-30 18:45:56 +02:00
Florian Bruhin
d178c89a0e Compact logged stylesheets 2014-07-30 18:27:18 +02:00
Florian Bruhin
36c4e8940e Remove print we accidentally added. 2014-07-30 18:22:13 +02:00
Florian Bruhin
77ca7db46a Handle early shutdown better 2014-07-30 18:21:40 +02:00
Florian Bruhin
8c78806e1c Shutdown correctly if config is not initialized yet 2014-07-30 18:13:36 +02:00
Florian Bruhin
276315483d Add some more logging to shutdown. 2014-07-30 18:11:35 +02:00
Florian Bruhin
19d0f832ad Handle SIGTERM/SIGINT gracefully. 2014-07-30 18:11:22 +02:00
Florian Bruhin
17220d8ef5 Fix signal imports 2014-07-30 17:50:12 +02:00
Florian Bruhin
11ea911940 Clean up after removing shutdown code 2014-07-30 17:12:20 +02:00
Florian Bruhin
db51a51e5a Add utilcmds and :later command. 2014-07-30 17:05:52 +02:00
Florian Bruhin
70faceea67 Check for overflows in custom Timer 2014-07-30 17:05:29 +02:00
Florian Bruhin
cb8af1de31 Merge branch 'shutdown'
Conflicts:
	qutebrowser/widgets/webview.py
2014-07-30 16:39:01 +02:00
Florian Bruhin
b574fcfe19 Print '<Default configuration>' in crash report if it's unchanged 2014-07-29 22:51:32 +02:00
Florian Bruhin
0091b4729a Make tabbedbrowser.now_focused private 2014-07-29 22:44:14 +02:00
Florian Bruhin
cf8a8ad3b4 Fix crash when closing tab then doing tab-focus-last. 2014-07-29 22:42:59 +02:00
Florian Bruhin
8ce779261f Parse Content-Disposition headers more relaxed.
Before, we got an unhandled ValueError if there were multiple spaces in a
filename.

Instead of ignoring such a header altogether, we now add relaxed=True which
still tries to get the filename in this situation (and with a semicolon at the
line end).

Because the parser is also more relaxed in that second case, we mark a test as
expected failure.
2014-07-29 22:36:00 +02:00
Florian Bruhin
e1f9403876 Clean up hint command. 2014-07-29 02:24:04 +02:00
Florian Bruhin
425a7fd7c4 Simplify userscript running. 2014-07-29 02:05:15 +02:00
Florian Bruhin
b83dd59469 Add userscript/spawn targets to hints. 2014-07-29 01:45:42 +02:00
Florian Bruhin
016e8f3c8d Don't explicitely fill commandline 2014-07-29 01:04:17 +02:00
Florian Bruhin
265019650b Use enum for completions 2014-07-29 00:37:32 +02:00
Florian Bruhin
54246bacbe Add some type checking for enums 2014-07-29 00:23:20 +02:00
Florian Bruhin
7c8f9bec0f Use enum for keyboard modes. 2014-07-29 00:19:35 +02:00
Florian Bruhin
860ef75abc Fix lint 2014-07-28 21:09:49 +02:00
Florian Bruhin
8d80ce2628 Switch to python 3.4 enums.
Our home-brewn enum wasn't really liked by pylint (many no-member errors), so
instead of adding some workaround, we just use the python 3.4 enum instead.

This however also means we need to depend on Python 3.4 and not 3.3. Maybe we
should use enum34 on Python < 3.3.
2014-07-28 20:41:42 +02:00
Florian Bruhin
54c7f29f04 Remove weird condition when cmd text ends with ' '.
For some reason we checked nargs if split is False. This caused the completion
to not get hidden with ":spawn ". Since this condition makes no sense (and
probably was converted wrong in be467d5e) we remove it here.
2014-07-28 02:27:12 +02:00
Florian Bruhin
d60ff5ed27 Add a set-cmd-text command. 2014-07-28 02:16:37 +02:00
Florian Bruhin
76ff8aa30a Add missing imports from current_url move. 2014-07-28 02:16:22 +02:00
Florian Bruhin
e0bd89b762 Add an {url} variable for commands.
Note this also means we don't support :spawn running in a shell anymore, as
{url} is evaluated earlier. However this should be fine, as there's no really
important use case for that anyways, and shell escaping on Windows is rather
unmaintainable.
2014-07-28 01:40:36 +02:00
Florian Bruhin
c2a7a67f30 Add some more init checks and use Tk for errors 2014-07-27 22:57:50 +02:00
Florian Bruhin
f86458a3b9 Remove shutdown code 2014-07-27 20:56:42 +02:00
Florian Bruhin
056e1bea76 Fix settabtext fuckup 2014-07-25 13:47:48 +02:00
Florian Bruhin
71a27d42d8 Don't escape & in tab titles anymore.
Now that we do the rendering ourselves, & doesn't have any special meaning
anymore, so we don't have to escape it (as &&) anymore.
2014-07-24 22:50:22 +02:00
Florian Bruhin
d4c3a65fe3 Start with manpage generation 2014-07-18 07:48:33 +02:00
Florian Bruhin
8f19da7e54 Fix lint 2014-07-17 21:35:27 +02:00
Florian Bruhin
abf5fbc063 Clean up config color handling 2014-07-17 16:06:14 +02:00
Florian Bruhin
34d1449cd2 Make it easier to disable tab indicator 2014-07-17 14:50:16 +02:00
Florian Bruhin
f7304298ab Separate docstrings into command/documentation parts. 2014-07-16 20:09:41 +02:00
Florian Bruhin
1d0fa621b6 Formatting fixes 2014-07-16 18:05:17 +02:00
Florian Bruhin
a687388819 Change config descriptions to be asciidoc 2014-07-16 18:05:17 +02:00
Florian Bruhin
86b7ea4dfc Merge branch 'tabbar' 2014-07-16 17:57:15 +02:00
Florian Bruhin
dd2027bb53 Focus webview when tabs change 2014-07-16 16:34:58 +02:00
Florian Bruhin
e3d9c252ab Remove unneeded updateGeometry 2014-07-16 14:45:02 +02:00
Florian Bruhin
3b2acf32b5 Remove logging on resize 2014-07-16 14:17:10 +02:00
Florian Bruhin
5e06d420f9 Fix disconnecting tab signals 2014-07-16 14:11:28 +02:00
Florian Bruhin
1a1473a18e Handle dirty tabbar layout correctly 2014-07-16 14:10:46 +02:00
Florian Bruhin
52c52e0675 Add a tab progress indicator 2014-07-16 13:51:16 +02:00
Florian Bruhin
bcbdf9090f Make tab close mouse button configurable 2014-07-16 13:04:08 +02:00
Florian Bruhin
2d3575f6d1 Remove tab close buttons 2014-07-16 13:04:08 +02:00
Florian Bruhin
6289ef7981 Adjust vertical tabbar width 2014-07-16 13:04:08 +02:00
Florian Bruhin
7bcd8192a7 Add FIXME 2014-07-16 13:04:08 +02:00
Florian Bruhin
854d6dffcc Various tab rendering fixes. 2014-07-16 13:04:08 +02:00
Florian Bruhin
81f3abd402 Remove unneeded tabInserted. 2014-07-16 13:04:08 +02:00
Florian Bruhin
81ff622291 Improve highlight_color tests. 2014-07-16 13:04:08 +02:00
Florian Bruhin
93f2e4b24d Cleanup. 2014-07-16 13:04:08 +02:00
Florian Bruhin
7c8471e64c Nicer drawing of close cross. 2014-07-16 13:04:08 +02:00
Florian Bruhin
b47d53953b Add a highlight_color util function. 2014-07-16 13:04:08 +02:00
Florian Bruhin
20e8c464e6 Check for QtValueErrors in interpolate_color tests. 2014-07-16 13:04:08 +02:00
Florian Bruhin
ca74fa28ac Use a nicer Color() class for tests. 2014-07-16 13:04:08 +02:00
Florian Bruhin
b042b5cbc4 Try drawing our own tab button 2014-07-16 13:04:08 +02:00
Florian Bruhin
9a430b22a3 Calculate close button position correctly 2014-07-16 13:04:08 +02:00
Florian Bruhin
367ecb0e44 Override subElementRect properly. 2014-07-16 13:04:08 +02:00
Florian Bruhin
cd19697a77 Construct a copy of text_rect in tab_layout. 2014-07-16 13:04:08 +02:00
Florian Bruhin
7ad0dc6416 Remove magic constant. 2014-07-16 13:04:08 +02:00
Florian Bruhin
27d3c8d20f Rename option to opt. 2014-07-16 13:04:08 +02:00
Florian Bruhin
1d31f1eb48 Don't pass useless widget to tab_layout. 2014-07-16 13:04:07 +02:00
Florian Bruhin
465ff7406c Use self instead of super() 2014-07-16 13:04:07 +02:00
Florian Bruhin
1f9597153e Cleanup 2014-07-16 13:04:07 +02:00
Florian Bruhin
87e80451c7 Remove wrong validity check 2014-07-16 13:04:07 +02:00
Florian Bruhin
e608ccbe36 Draw tabbar ourselves #2 2014-07-16 13:04:07 +02:00
Florian Bruhin
92d28a66d5 Paint odd/even tabs in different colors 2014-07-16 13:04:07 +02:00
Florian Bruhin
256d7e90b9 Apply tabbar style to bar only 2014-07-16 13:04:07 +02:00
Florian Bruhin
c3428db029 Use self._style for overridden drawItemText 2014-07-16 13:04:07 +02:00
Florian Bruhin
9b21f37659 Try changing tabbar color 2014-07-16 13:04:07 +02:00
Florian Bruhin
b4aba0d0ee Don't display tab separator if unneeded 2014-07-16 13:04:07 +02:00
Florian Bruhin
ef237bc081 Remove obsolete tabbar options 2014-07-16 13:03:46 +02:00
Florian Bruhin
90adc100a2 Move style to widgets.tabwidget 2014-07-16 13:03:46 +02:00
Florian Bruhin
4acf046ed2 Force tab text to be left-aligned 2014-07-16 13:03:46 +02:00
Florian Bruhin
23baab1fc0 Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
Conflicts:
	qutebrowser/utils/webelem.py
2014-07-16 11:09:13 +02:00
Florian Bruhin
98edd45fee Stop using self.sender() in signalfilter, connect signals to mainframe 2014-07-16 11:07:05 +02:00
Florian Bruhin
8757f016cb Fix lint 2014-07-16 10:40:11 +02:00
Florian Bruhin
e250d42f0b Better debugging for editing 2014-07-16 09:28:28 +02:00
Florian Bruhin
1f3b39eb75 Get rid of prevnext_rel selector group 2014-07-16 09:17:59 +02:00
Florian Bruhin
be460afc1c Make debug text more compact 2014-07-16 09:15:52 +02:00
Florian Bruhin
f8151bc8ed Fix insert modes where we can't get an element 2014-07-16 09:09:28 +02:00
Florian Bruhin
fed18d31f2 Merge branch 'editable' 2014-07-16 08:47:37 +02:00
Florian Bruhin
69a388a055 Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser 2014-07-16 08:47:32 +02:00
Florian Bruhin
958b114d29 Add stricter focus checking for editor 2014-07-16 08:46:52 +02:00
Florian Bruhin
fdc51cb628 Cleanup 2014-07-16 08:40:40 +02:00
Florian Bruhin
810e507da9 Add a focus_elem function to utils.webelem. 2014-07-16 07:55:30 +02:00
Florian Bruhin
bbd9d24334 Handle elements with contenteditable correctly for editor 2014-07-16 07:42:02 +02:00
Florian Bruhin
92e67b8018 Improve editable field selection.
Now it also gets the gmail compose window, but we can't actually edit its
value... It works in dwb though!
2014-07-16 07:15:31 +02:00
Florian Bruhin
d5c8e73b14 Use same focus code for insertmode/editor 2014-07-16 06:58:01 +02:00
Florian Bruhin
c369bde6ad Don't force minimum tab size. 2014-07-11 16:54:54 +02:00
Florian Bruhin
86edda69c1 Fix close-on-right-click for tabs. 2014-07-11 07:01:08 +02:00
Florian Bruhin
4114308193 Log exception on invalid config 2014-07-10 22:39:24 +02:00
Florian Bruhin
0705d6087c Don't catch every ValueError to get failed interpolations 2014-07-10 22:38:09 +02:00
Florian Bruhin
f0c67193a9 Implement ConfigManager.items().
If this isn't implemented, _interpolate_some will fail when doing a
double-interpolation.
2014-07-10 22:32:41 +02:00
Florian Bruhin
fad22c63d9 Go back to using one NetworkManager per tab 2014-07-10 06:42:52 +02:00
Florian Bruhin
781390828f Merge branch 'master' of ssh://lupin/qutebrowser 2014-07-09 21:14:32 +02:00
Florian Bruhin
72b854049b Improvments for hints/page-prev/page-next 2014-07-09 21:14:15 +02:00
Florian Bruhin
5feee871ac Fix lint 2014-07-07 12:00:51 +02:00
Florian Bruhin
6d44cf1b6e Fix weird crash in on_tab_changed 2014-07-06 21:33:50 +02:00
Florian Bruhin
cea3cb4712 Only leave insert/hint mode if loading started in current tab 2014-07-04 17:32:17 +02:00
Florian Bruhin
f173583605 Documentation update for Qt 5.3.1 2014-07-04 14:37:31 +02:00
Florian Bruhin
117755863d Fix lint 2014-07-04 07:41:03 +02:00
Florian Bruhin
37ed9deecf Add tests for key_to_string and keyevent_to_string. 2014-07-04 07:35:33 +02:00
Florian Bruhin
539325db90 Move fake_keyevent to test.helpers 2014-07-04 07:35:04 +02:00
Florian Bruhin
734ee74e8a Use OrderedDict for modmask2str 2014-07-04 07:33:58 +02:00
Florian Bruhin
261bb85791 Handle escape key correctly 2014-07-03 07:52:58 +02:00
Florian Bruhin
70afe4d1fd Don't die on only-modifier keypresses. 2014-07-03 07:52:47 +02:00
Florian Bruhin
ea84ce7acf Force keybindings to lower case 2014-07-03 07:46:14 +02:00
Florian Bruhin
d45e883f6d Move NormalizeTests to test.utils.test_misc 2014-07-03 07:41:23 +02:00
Florian Bruhin
9b24ca39ea Move normalize_keystr to utils.misc 2014-07-03 07:34:09 +02:00
Florian Bruhin
f1ff2738da Don't normalize keys via QKeySequence.
This yields rather strange results with some exotic keys, and this
normalisation doesn't really do much anyways.
2014-07-03 07:16:24 +02:00
Florian Bruhin
1816e8419e Handle some special corner-case keys correctly 2014-07-03 07:14:30 +02:00
Florian Bruhin
03e83ff8e1 Move key to string converting to utils.misc 2014-07-03 06:51:24 +02:00
Florian Bruhin
058bab2348 Log key IDs in hex 2014-07-03 06:30:50 +02:00
Florian Bruhin
a52796e94d Handle all key modifiers correctly 2014-07-03 06:29:05 +02:00
Florian Bruhin
ae676323ff Turn auto-insert-mode off by default 2014-07-02 23:08:49 +02:00
Florian Bruhin
01485a2f9e Always display statusbar red on errors, even in insert mode 2014-07-02 23:08:29 +02:00
Florian Bruhin
b22ebb7778 Escape & in tab titles properly 2014-07-02 23:05:42 +02:00
Florian Bruhin
c18027f3ae Override QWebPage::acceptNavigationRequest.
We now do this instead of using linkDelegationPolicy and the linkClicked signal
of QWebView, as we are unable to get the target frame with linkClicked, causing
frames to open full-page instead of where they should.

See https://bugs.webkit.org/show_bug.cgi?id=37847
2014-07-02 22:17:36 +02:00
Florian Bruhin
4aab32cc5d Move asking of questions away from Prompt widget 2014-07-02 07:07:03 +02:00
Florian Bruhin
a466b672b3 Prompt comment cleanup 2014-07-02 06:52:30 +02:00
Florian Bruhin
5c84616ff4 Rename visible to _busy and make it private. 2014-07-02 06:42:23 +02:00
Florian Bruhin
3f85f63546 Remove unneeded hide_prompt. 2014-07-02 06:42:11 +02:00
Florian Bruhin
708d0a2885 Fix lint 2014-07-02 06:35:00 +02:00
Florian Bruhin
6d2dfc5758 Clear message properly in on_mode_left. 2014-07-02 06:34:59 +02:00
Florian Bruhin
8945befcb6 Prompt queue bugfixes. 2014-07-02 06:34:59 +02:00
Florian Bruhin
e5e4790e30 Add question prompt 2014-07-02 06:34:59 +02:00
Florian Bruhin
1b9bcbf56f Save old question correctly 2014-07-02 06:34:59 +02:00
Florian Bruhin
4cdf4fc45f Start fixing foo 2014-07-02 06:34:59 +02:00
Florian Bruhin
0d037c74d4 Fix lint 2014-07-01 07:57:19 +02:00
Florian Bruhin
29064850c7 Begin using unittest.mock.patch 2014-06-30 20:35:43 +02:00
Florian Bruhin
66f0ef8009 Adjust test_basekeyparser for the named Timer. 2014-06-29 22:15:01 +02:00
Florian Bruhin
dd125cd0be Mock out logging instead of disabling in test_basekeyparser. 2014-06-29 22:14:46 +02:00
Florian Bruhin
8d237229f5 Add __init__.py in test/keyinput 2014-06-29 21:17:38 +02:00
Florian Bruhin
400f619903 Handle user variables in path correctly 2014-06-28 01:15:31 +02:00
Florian Bruhin
1a73a90515 Fix downloading with relative filepaths 2014-06-27 18:30:20 +02:00
Florian Bruhin
07e799acff Disable messagehandler workaround on recent enough PyQt versions 2014-06-27 16:57:39 +02:00
Florian Bruhin
c6ad5622b4 Clean up earlyinit 2014-06-27 12:25:27 +02:00
Florian Bruhin
b79cdbc416 Clean up Question objects correctly 2014-06-27 07:56:16 +02:00
Florian Bruhin
cb6550debb Set WA_DeleteOnClose in report dialogs 2014-06-27 07:39:01 +02:00
Florian Bruhin
2aa756d96a Increase HTML log font size 2014-06-26 14:11:27 +02:00
Florian Bruhin
e95ef9ab4a Don't log scrolling 2014-06-26 14:10:53 +02:00
Florian Bruhin
46d621629f Fix download/question crashes 2014-06-26 13:36:00 +02:00
Florian Bruhin
ca3df5e169 Highlight and select text when searching 2014-06-26 11:10:31 +02:00
Florian Bruhin
d9f4d88b88 Revert "Fix lint"
This reverts commit 6d0db2af00.

For some reason this doesn't fix the warning at all...
2014-06-26 10:57:45 +02:00
Florian Bruhin
4ade32777d Revert "Add search-highlight-all option"
There's a better solution: Calling the function twice, once with highlight,
once with mark.

This reverts commit 8812672d7d.
2014-06-26 10:57:12 +02:00
Florian Bruhin
6d0db2af00 Fix lint 2014-06-26 10:09:56 +02:00
Florian Bruhin
8812672d7d Add search-highlight-all option 2014-06-26 10:08:26 +02:00
Florian Bruhin
eeef9aa930 Fix inverted ignore-case setting. 2014-06-26 10:04:08 +02:00
Florian Bruhin
92ff957543 Clean up message API 2014-06-26 07:58:00 +02:00
Florian Bruhin
15ca1b7f59 Add __repr__ to CrashDialog 2014-06-25 23:03:33 +02:00
Florian Bruhin
a083fe69db Add a :report command 2014-06-25 22:22:30 +02:00
Florian Bruhin
b8556bab00 Fix closing </b> 2014-06-25 22:07:22 +02:00
Florian Bruhin
7073d14cb8 Handle absolute paths for downloads better 2014-06-25 22:06:16 +02:00
Florian Bruhin
37ccac39d6 Fix lint 2014-06-25 21:23:22 +02:00
Florian Bruhin
09641d96f3 Fix HTML log output 2014-06-25 21:11:03 +02:00
Florian Bruhin
fcc0d8e911 Better workaround for hang-with-warnings bug 2014-06-25 20:18:00 +02:00
Florian Bruhin
a03d209cb0 Fix missing import 2014-06-25 18:38:41 +02:00
Florian Bruhin
2f3b1faeb9 Add workaround for freeze on mouser.com 2014-06-25 17:59:24 +02:00
Florian Bruhin
9238135867 Fix crashes after completion refactoring 2014-06-25 16:48:28 +02:00
Florian Bruhin
5c143da40b Don't update completion twice 2014-06-25 15:52:51 +02:00
Florian Bruhin
b72306ffe6 Reduce logging for completions 2014-06-25 15:52:40 +02:00
Florian Bruhin
36d032c330 Don't resize completion while typing when unnecessary 2014-06-25 15:31:00 +02:00
Florian Bruhin
158301d3df Reduce logging from modemanager 2014-06-25 15:26:59 +02:00
Florian Bruhin
3c82724d10 Don't die on invalid quickmarks 2014-06-25 11:03:26 +02:00
Florian Bruhin
46a3e2af92 Queue messages to the end of the eventloop.
When not doing this, error messages sent before the signals get connected (i.e.
during init) get lost.
2014-06-25 11:02:34 +02:00
Florian Bruhin
ab99669b4a Remove unused import 2014-06-25 10:03:13 +02:00
Florian Bruhin
c8cc92e8c2 Add basic HTML log 2014-06-25 10:00:27 +02:00
Florian Bruhin
411d57e539 Fix download-page 2014-06-25 10:00:09 +02:00
Florian Bruhin
efd34455b5 Shutdown tabs before removing 2014-06-25 07:45:01 +02:00
Florian Bruhin
daee57b37d Saner default values for some QWebSettings 2014-06-25 06:54:34 +02:00
Florian Bruhin
9b4cc6ab76 Nicer downloads when size is unknown 2014-06-24 17:57:52 +02:00
Florian Bruhin
c7f2b45cbd Always yank to clipboard if primary selection is unavailable 2014-06-24 12:04:36 +02:00
Florian Bruhin
24dbfc30cb Fix jumping of tabs when selected 2014-06-24 11:03:44 +02:00
Florian Bruhin
f849710df4 Strip URL for URL recognition 2014-06-24 08:40:53 +02:00
Florian Bruhin
af14e8bf94 Keep GPL closer to the original 2014-06-24 07:58:48 +02:00
Florian Bruhin
a114b46b81 Get colorama version correctly 2014-06-24 07:56:17 +02:00
Florian Bruhin
be75f45312 Add info if executable is frozen to version output 2014-06-24 07:46:01 +02:00
Florian Bruhin
4b95f369a4 Get rid of ipdb/IPython.
This caused more problems than it's worth really, and it does some black magic
I'm not comfortable with.
2014-06-24 07:42:49 +02:00
Florian Bruhin
3ce9945bc9 Merge branch 'restart' 2014-06-24 07:11:05 +02:00
Florian Bruhin
f1c0153409 Don't die when getting signals for invalid tabs 2014-06-24 07:01:15 +02:00
Florian Bruhin
f3f04b6f21 Make restart work when frozen 2014-06-24 06:52:49 +02:00
Florian Bruhin
65353773d1 First fix for :restart 2014-06-24 06:43:52 +02:00
Florian Bruhin
43bcb2a746 Remove mouse focus indicator on Windows in completion view 2014-06-23 21:02:55 +02:00
Florian Bruhin
b1f9139fd7 Fix lint 2014-06-23 20:33:41 +02:00
Florian Bruhin
ba9b846a20 Lower-case HTML attributes. 2014-06-23 20:32:40 +02:00
Florian Bruhin
9afab112aa Move select tag to non-configurable is_editable types. 2014-06-23 20:32:07 +02:00
Florian Bruhin
31e0cde35b Add tests for is_editable. 2014-06-23 20:31:47 +02:00
Florian Bruhin
2065f17cb5 Clean up tests 2014-06-23 19:44:21 +02:00
Florian Bruhin
fa95c24d7d Accept events properly 2014-06-23 18:21:12 +02:00
Florian Bruhin
81990f792f Avoid using QApplication for downloads 2014-06-23 17:30:28 +02:00
Florian Bruhin
da0bfb4861 Set window title based on page 2014-06-23 17:18:36 +02:00
Florian Bruhin
277bac618a Color statusbar in insert mode 2014-06-23 16:43:59 +02:00
Florian Bruhin
359e4bab6f Fix value models when config changed. 2014-06-23 16:43:04 +02:00
Florian Bruhin
b6ddda8f17 Show git timestamp in version 2014-06-23 16:19:43 +02:00
Florian Bruhin
98a2e80b38 Fix quickmarks 2014-06-23 16:12:35 +02:00
Florian Bruhin
70f224ba32 Make tab close on right click configurable 2014-06-23 15:47:31 +02:00
Florian Bruhin
914f7ace81 Fix Content-Disposition tests on Linux 2014-06-23 14:54:12 +02:00
Florian Bruhin
e5e49ed858 Split _is_object_editable from is_editable. 2014-06-23 14:48:18 +02:00
Florian Bruhin
c71e9e4c83 Add missing config import. 2014-06-23 14:48:07 +02:00
Florian Bruhin
dc91bcdf91 Don't crash if URLs are invalid in commands 2014-06-23 14:26:47 +02:00
Florian Bruhin
e5e466f6d1 Don't restore keyboard focus when hinting 2014-06-23 14:26:44 +02:00
Florian Bruhin
cf17af147e Fix and clean up insertmode checks 2014-06-23 14:26:34 +02:00
Florian Bruhin
fdb4b24148 Remove excess newlines 2014-06-23 12:28:55 +02:00
Florian Bruhin
f12d243f03 Clean up import 2014-06-23 12:17:13 +02:00
Florian Bruhin
19688f5055 Add tests for parse_content_disposition 2014-06-23 12:16:01 +02:00
Florian Bruhin
e4b10af41a Move filename checking to utils.misc 2014-06-23 12:15:10 +02:00
Florian Bruhin
752422c351 Add missing returns after calling superclass events.
We fscked that up in 9668994046.
2014-06-23 10:18:27 +02:00
Florian Bruhin
6774445497 Fix lint 2014-06-23 08:26:35 +02:00
Florian Bruhin
be68f98ce7 Don't crash on invalid icon rect 2014-06-23 08:20:40 +02:00
Florian Bruhin
0a205071be Add username to contact info 2014-06-23 08:16:00 +02:00
Florian Bruhin
593a2fe4ec Make it configurable whether to leave insertmode on click 2014-06-23 08:05:52 +02:00
Florian Bruhin
0028bd94cc Go to insertmode in google docs 2014-06-23 08:02:10 +02:00
Florian Bruhin
35ffc2c2c0 Don't crash if url is None in tabopen 2014-06-23 07:48:45 +02:00
Florian Bruhin
5efc9de434 Add comment about leaving insertmode 2014-06-23 07:47:42 +02:00
Florian Bruhin
8a8ca0c34f Split utils.misc into utils.{qt,misc} 2014-06-23 07:45:04 +02:00
Florian Bruhin
3443364de1 Fix lint 2014-06-23 07:12:19 +02:00
Florian Bruhin
5996651a2f Merge utils.signals into utils.debug 2014-06-23 07:11:15 +02:00
Florian Bruhin
6aff5fd374 Document js/qt loggers 2014-06-23 07:00:21 +02:00
Florian Bruhin
2690891cbe Better init logging 2014-06-23 06:37:47 +02:00
Florian Bruhin
4eeeb13927 Fix resizing completion on init 2014-06-23 06:23:33 +02:00
Florian Bruhin
ca576a1c82 Add some logging when restoring mainwindow size. 2014-06-23 06:20:37 +02:00
Florian Bruhin
c21fad491a Don't shut down before crash dialog 2014-06-22 23:57:48 +02:00
Florian Bruhin
c77ad57a42 Don't log missing config descriptions 2014-06-22 23:55:48 +02:00
Florian Bruhin
03098f861e Add logging for completion resizing 2014-06-22 23:52:50 +02:00
Florian Bruhin
d5834e0cf0 Don't crash on completion items without icon 2014-06-22 23:46:43 +02:00
Florian Bruhin
9668994046 Don't return values from events. 2014-06-22 23:37:16 +02:00
Florian Bruhin
8f85149c96 Don't accidentally call superclass event twice. 2014-06-22 23:37:06 +02:00
Florian Bruhin
983a0da520 Use toDisplayString for URL text. 2014-06-22 23:35:20 +02:00
Florian Bruhin
ba20300a2c Check if hit test result is null 2014-06-22 23:35:01 +02:00
Florian Bruhin
15126dfb3c Don't leave insert mode on non-insert clicks.
This proved to be a bad idea, as we only can guess what's an insert mode and
what isn't.
2014-06-22 23:34:19 +02:00
Florian Bruhin
7aea12ad35 Add comment about CodeMirror. 2014-06-22 23:34:05 +02:00
Florian Bruhin
46c19012ab Fix spelling in comment. 2014-06-22 23:33:55 +02:00
Florian Bruhin
231aa6f9b8 Add FIXME for QTime. 2014-06-22 23:33:43 +02:00
Florian Bruhin
4bd8a596f1 Check return values (e.g. indexOf) 2014-06-22 23:33:32 +02:00
Florian Bruhin
ef5b16556b More validity checks. 2014-06-22 23:32:49 +02:00
Florian Bruhin
bf9e829d4d Don't use .warn on loggers, use .warning instead. 2014-06-22 23:30:44 +02:00
Florian Bruhin
49fd08b30d Leave URLs encoded when setting commandline 2014-06-21 23:19:59 +02:00
Florian Bruhin
4d6dd808b1 Make ErrorNetworkReply readable 2014-06-21 23:14:18 +02:00
Florian Bruhin
fa9dd97f13 Improve qute:foo error message 2014-06-21 23:10:47 +02:00
Florian Bruhin
e0bb09cbce Set URL for special network replies 2014-06-21 23:10:22 +02:00
Florian Bruhin
d695baf355 Reply with error reply on invalid qute:* URLs. 2014-06-21 23:05:26 +02:00
Florian Bruhin
800fa381b1 Set request for ErrorNetworkReply. 2014-06-21 23:05:13 +02:00
Florian Bruhin
e8ded0a32a Cleanup 2014-06-21 23:04:03 +02:00
Florian Bruhin
3f37c0bb0b Use a list for pending requests 2014-06-21 23:03:51 +02:00
Florian Bruhin
5ab9755ac4 Fix vim modeline in models.completion 2014-06-21 22:41:04 +02:00
Florian Bruhin
a64775a0f9 Improve logging messages 2014-06-21 22:40:31 +02:00
Florian Bruhin
a3e5a20063 Don't log missing config descriptions 2014-06-21 17:56:46 +02:00
Florian Bruhin
14bcdafe47 Fix completion coloring 2014-06-21 17:50:29 +02:00
Florian Bruhin
664079c728 Don't raise CommandError in HintManager.fire 2014-06-21 17:41:25 +02:00
Florian Bruhin
e1aabc974c Remove completion bg from stylesheet 2014-06-21 17:38:04 +02:00
Florian Bruhin
cd8bca7e3b Catch QColors passed to ColorDict 2014-06-21 17:37:54 +02:00
Florian Bruhin
7a6e2b3242 Ensure validity of Qt objects 2014-06-21 17:02:30 +02:00
Florian Bruhin
0dc2ecef46 Check QUrl objects for validity 2014-06-20 23:57:52 +02:00
Florian Bruhin
16758354e8 Fix missing return 2014-06-20 23:57:14 +02:00
Florian Bruhin
113221c731 Log some exceptions 2014-06-20 23:26:19 +02:00
Florian Bruhin
736f559afa Fix URL handling for quickmarks. 2014-06-20 22:57:32 +02:00
Florian Bruhin
2d2ee71bee Remove passwords from URLs going out via an insecure channel. 2014-06-20 22:57:04 +02:00
Florian Bruhin
03b69c5527 Print debug information if config saving failed. 2014-06-20 22:56:29 +02:00
Florian Bruhin
d6fb0f7774 Fix crash when pasting an URL 2014-06-20 22:31:39 +02:00
Florian Bruhin
9a33efdb3f Fix is_special_url (use QUrl). 2014-06-20 20:27:24 +02:00
Florian Bruhin
7de637baea Add a none argument to every config type and cleanup.
- Rename none to none_ok (because of "None")
- Fix File class.
2014-06-20 20:27:24 +02:00
Florian Bruhin
8b6af23b13 Make sure we don't display passwords in URLs to the user 2014-06-20 19:50:44 +02:00
Florian Bruhin
d3196fe683 Rename Url in statusbar to UrlText 2014-06-20 17:40:36 +02:00
Florian Bruhin
91416e345d Treat CodeMirror instances as editable 2014-06-20 16:55:42 +02:00
Florian Bruhin
0fd64419da Remove urlutils.{urlstring,qurl}.
The idea of treating an URL-string and a QUrl as essentially the same data type
got us into all kinds of problems. Now we use QUrl everywhere except at the
borders to the user interface.
2014-06-20 16:33:01 +02:00
Florian Bruhin
4909f3f0fe Add LeplFilter to RAM, not twice to console.
Fixes exception when sys.stderr is None.
2014-06-20 08:50:37 +02:00
Florian Bruhin
0fa309e2a4 Add a test for init_log if sys.stderr is None. 2014-06-20 08:50:04 +02:00
Florian Bruhin
e1ae4cb54c Add a base class for logging tests. 2014-06-20 08:49:48 +02:00
Florian Bruhin
2fac5aa0a0 Update comment 2014-06-20 06:53:41 +02:00
Florian Bruhin
5f86357ae8 Fix rfc6266 check 2014-06-20 06:45:52 +02:00
Florian Bruhin
d443e585d3 Add missing test_debug.py 2014-06-20 06:23:41 +02:00
Florian Bruhin
3c9b4369cd Don't crash on Content-Disposition with wrong enc.
When declaring UTF-8 but encoding RFC2231 ISO-8859-1, rfc2259 raises an
UnicodeDecodeError.

Test case: http://greenbytes.de/tech/tc2231/#attwithfn2231iso-bad
2014-06-19 23:14:20 +02:00
Florian Bruhin
7690e918a2 Handle early download errors correctly 2014-06-19 21:37:22 +02:00
Florian Bruhin
0dfdd422a2 Prevent double-deleting file in downloads 2014-06-19 21:27:57 +02:00
Florian Bruhin
684154dd7d Remove set_trace 2014-06-19 21:26:01 +02:00
Florian Bruhin
2fd475b1a4 Fix downloading without content-disposition 2014-06-19 21:09:33 +02:00
Florian Bruhin
6ce5afccbe Use rfc6266 to handle Content-Disposition in downloads 2014-06-19 21:06:19 +02:00
Florian Bruhin
52d1645479 Revert "Clean up styles"
This reverts commit f821d9e211.

This causes all methods to be applied from QCommonStyle, thus resulting in
right-click menus being blank...
2014-06-19 21:05:41 +02:00
Florian Bruhin
6b12572fb0 Add dwb download keybindings. 2014-06-19 17:58:46 +02:00
Florian Bruhin
9c26eba761 Catch weird TypeError when aborting question 2014-06-19 17:56:41 +02:00
Florian Bruhin
f821d9e211 Clean up styles 2014-06-19 15:43:34 +02:00
Florian Bruhin
d642aa48c1 Fix reparenting issues with layouts 2014-06-19 14:13:44 +02:00
Florian Bruhin
3de113ee8c Don't double-connect tabCloseRequested 2014-06-19 13:43:43 +02:00
Florian Bruhin
6f4b2e872b Don't restore focus to unfocused widget 2014-06-19 13:43:16 +02:00
Florian Bruhin
cd68d04067 Add missing space 2014-06-19 13:19:02 +02:00
Florian Bruhin
b70657eb53 Validate configs properly.
We inherited custom types from String which is wrong and not validated against
ValidValues.
2014-06-19 13:18:25 +02:00
Florian Bruhin
c56c7c0394 Support cancelling a javascript confirm dialog 2014-06-19 12:21:22 +02:00
Florian Bruhin
3435aef78c Add commandline argument for debug log buffer size 2014-06-19 12:11:46 +02:00
Florian Bruhin
fdda1dd3a0 Forward unbound non-alphanumeric keys by default.
We do this so we benefit from some default WebKit keybindings users would
expect. For example, we'd need to bind Ctrl+X/C/V by default without this.

We also remove the custom-bound scrolling keybindings as they're redundant now.

The forward-unbound-keys setting now isn't a bool anymore, instead it can be
set to all/auto/none.
2014-06-19 11:51:25 +02:00
Florian Bruhin
e6f9c0ccea Fix keyboard focus issues. 2014-06-19 11:50:31 +02:00
Florian Bruhin
d42e71a5d5 Use QApplication (not QCoreApplication) to call activeWindow 2014-06-19 11:22:17 +02:00
Florian Bruhin
1ed70bfef7 Fix utils.log so it works with sys.stderr == None 2014-06-19 10:19:00 +02:00
Florian Bruhin
d65587128f Add vim modelines to all files. 2014-06-19 09:04:37 +02:00
Florian Bruhin
4eebf24775 Improve crash dialog 2014-06-19 07:53:17 +02:00
Florian Bruhin
b25b3c3786 Remove accidentally commited set_trace 2014-06-19 07:52:32 +02:00
Florian Bruhin
6e59b0ab3a Parse Content-Disposition header properly 2014-06-18 22:52:49 +02:00
Florian Bruhin
36d31efe13 Fix lint 2014-06-17 23:16:06 +02:00
Florian Bruhin
2b5a1cc322 Add wiget/object list to crash dialog 2014-06-17 23:04:58 +02:00
Florian Bruhin
87ddfc418e Remove unneeded informations from segfault crash dialog 2014-06-17 22:37:20 +02:00
Florian Bruhin
6cc178aa52 Do some emergency shutdown on an exception. 2014-06-17 22:37:06 +02:00
Florian Bruhin
e6866f7d85 Don't go to insert mode on disabled/readonly fields 2014-06-17 15:32:18 +02:00
Florian Bruhin
8971d2ac18 Don't rename set_trace 2014-06-17 15:28:06 +02:00
Florian Bruhin
4a0e34fca7 Delete print dialogs on close 2014-06-17 14:33:15 +02:00
Florian Bruhin
2388874e82 Delete question if download as cancelled 2014-06-17 11:26:45 +02:00
Florian Bruhin
61e8940ccb Clean up debug methods 2014-06-17 11:12:55 +02:00
Florian Bruhin
52bbabd91a Clean up downloads properly 2014-06-17 11:06:59 +02:00
Florian Bruhin
1fef2d02b9 Add an :all-objects command and __repr__s 2014-06-17 11:03:42 +02:00
Florian Bruhin
fe99cbc331 Fix crashes after parent-child cleanup. 2014-06-17 10:20:15 +02:00
Florian Bruhin
7dfd7d018b pylint: completely disable unnecessary-lambda 2014-06-17 07:19:16 +02:00
Florian Bruhin
af9e4ae072 Fix parent/child relationships 2014-06-17 07:17:21 +02:00
Florian Bruhin
17cd86d564 Add an :all-widgets command and useful __repr__s 2014-06-17 06:37:56 +02:00
Florian Bruhin
177e2945b6 Use currying instead of self.sender() where applicable 2014-06-16 22:49:22 +02:00
Florian Bruhin
c6d875f8df Name --qt-widgetcount properly 2014-06-16 14:42:01 +02:00
Florian Bruhin
6554b995d1 Fix comment 2014-06-16 13:54:47 +02:00
Florian Bruhin
7325cefdae Fix lint 2014-06-16 12:11:10 +02:00
Florian Bruhin
b33ff5df1b Depend on Qt 5.2 or newer 2014-06-16 11:26:09 +02:00
Florian Bruhin
3090a6330d Clean up Python 3.2 compatibility cruft. 2014-06-16 11:20:43 +02:00
Florian Bruhin
011bc75a79 Make sure pkg_resources is available. 2014-06-16 11:20:26 +02:00
Florian Bruhin
903de515e7 Add a check whether print works. 2014-06-16 10:21:03 +02:00
Florian Bruhin
43490202ca Add a qt_version_check function to utils.misc.
We're usually only interested in the runtime version, not in the compile-time
version, so we use this rather than comparing to QT_VERSION/PYQT_VERSION.
2014-06-16 10:20:05 +02:00
Florian Bruhin
d76226626f Add debug argument for commands 2014-06-16 09:44:11 +02:00
Florian Bruhin
d97823615a Auto-enable javaScriptPrompt at PyQt > 5.3.0 2014-06-16 08:52:47 +02:00
Florian Bruhin
49fd9951ed Use multiple eventloops 2014-06-15 22:24:37 +02:00
Florian Bruhin
2b9f337758 Fix lint 2014-06-15 11:36:28 +02:00
Florian Bruhin
fa79212fea Don't crash on :<space> 2014-06-15 11:29:33 +02:00
Florian Bruhin
b905b44b07 Add a qenum_key debug method 2014-06-15 11:21:39 +02:00
Florian Bruhin
d3476662b9 Fix argument to message answered signal 2014-06-14 23:44:37 +02:00
Florian Bruhin
f58e702589 Don't override javaScriptPrompt because of PyQt bugs 2014-06-14 23:31:39 +02:00
Florian Bruhin
392784213b Use EventLoop which raises an Exception on double exec_() 2014-06-14 21:00:08 +02:00
Florian Bruhin
e453d9c8ca Merge Prompt:_display into Prompt:ask_question. 2014-06-13 23:42:07 +02:00
Florian Bruhin
6d4f961a50 Merge branch 'downloads'
Conflicts:
	BUGS
2014-06-13 23:11:44 +02:00
Florian Bruhin
9b42617c76 Fix lint 2014-06-13 23:09:24 +02:00
Florian Bruhin
197bbf1a95 Fix spacing between download items 2014-06-13 23:06:25 +02:00
Florian Bruhin
9cd0369f89 Add some space between download items 2014-06-13 22:55:24 +02:00
Florian Bruhin
0e11bae002 Turn off scrollbars in DownloadView 2014-06-13 22:53:56 +02:00
Florian Bruhin
5d6cb0e45d Clean up download value calculations 2014-06-13 22:51:16 +02:00
Florian Bruhin
85ee71b739 Add a rolling average of dl speed for time estimation 2014-06-13 21:53:06 +02:00
Florian Bruhin
d80c05b0b1 Decrease download speed refresh interval 2014-06-13 21:43:04 +02:00
Florian Bruhin
82ed50050d Update DownloadView geometry when MainWindow size changed. 2014-06-13 20:19:36 +02:00
Florian Bruhin
aa36d3b10c Relayout DownloadView when size changed. 2014-06-13 20:19:27 +02:00
Florian Bruhin
6579f4dba0 Resize DownloadModel based on last item 2014-06-13 20:19:00 +02:00
Florian Bruhin
ba1f8e3764 Don't require parent argument for rowCount in DownloadModel. 2014-06-13 20:18:42 +02:00
Florian Bruhin
47c1908da2 Keep a reference to download path Question objects. 2014-06-13 20:18:16 +02:00
Florian Bruhin
fce591839b Abort filename prompt when download is cancelled. 2014-06-13 18:19:18 +02:00
Florian Bruhin
7b1e502dbf Actually make message.question async. 2014-06-13 18:16:47 +02:00
Florian Bruhin
5a2e6ba99a Add answer as argument to question's answered signal. 2014-06-13 18:16:24 +02:00
Florian Bruhin
a5f71a286d Don't make download items selectable 2014-06-13 17:47:03 +02:00
Florian Bruhin
6660988a5b Don't evaluate hint keychains twice 2014-06-13 14:52:54 +02:00
Florian Bruhin
3e5e8e59c1 Add right-click menu to cancel download 2014-06-13 12:19:30 +02:00
Florian Bruhin
cd7d6b87f9 Format donwload string so it jumps less 2014-06-13 07:49:47 +02:00
Florian Bruhin
c9f60caa12 Change download bar bg to black 2014-06-13 07:42:53 +02:00
Florian Bruhin
4dc33102b7 Cleanup 2014-06-13 07:41:51 +02:00
Florian Bruhin
ac43a0b5cb Style DownloadView 2014-06-13 07:39:47 +02:00
Florian Bruhin
9b7ff910c3 Log stylesheets 2014-06-13 07:38:10 +02:00
Florian Bruhin
efd83f40ca Print human readable sizes in downloads 2014-06-13 07:13:47 +02:00
Florian Bruhin
8c673ee66c Add basic download info to view 2014-06-12 23:29:34 +02:00
Florian Bruhin
2ffc9bb00a Add colors to DownloadView 2014-06-12 21:43:30 +02:00
Florian Bruhin
3c2c08f73a Add missing docstrings 2014-06-12 17:56:28 +02:00
Florian Bruhin
ad7856569f Handle download errors and handle everything async 2014-06-12 17:50:09 +02:00
Florian Bruhin
c91dced99f Make it possible to cancel a message.question 2014-06-12 17:49:36 +02:00
Florian Bruhin
c13ac6d5b0 Fix get_qt_args with non-Qt args. 2014-06-12 15:22:16 +02:00
Florian Bruhin
c90e01e16a Fix qt_args test.
The order of the arguments is non-deterministic.
2014-06-12 15:17:38 +02:00
Florian Bruhin
3d6d81e1cb Fix lint 2014-06-12 15:17:27 +02:00
Florian Bruhin
1b8a44ac26 Simplify get_qt_args 2014-06-12 15:13:26 +02:00
Florian Bruhin
dc0b025055 Forward unsupported content properly 2014-06-12 13:17:45 +02:00
Florian Bruhin
0713890980 Fix DownloadView sizing 2014-06-12 13:05:43 +02:00
Florian Bruhin
704be222d5 Set DownloadView size policy 2014-06-12 10:20:42 +02:00
Florian Bruhin
3150a88a3b Fix download model output if percentage is None 2014-06-12 10:20:27 +02:00
Florian Bruhin
8d9372045d Connect downloadmanager signals to model properly 2014-06-12 10:20:10 +02:00
Florian Bruhin
dcd05cae14 Move downloadview before browser 2014-06-12 10:19:45 +02:00
Florian Bruhin
db55865449 Add data_changed signal to downloadmanager. 2014-06-12 10:19:16 +02:00
Florian Bruhin
905eb9056d Fix speed calculation if downloadProgress hasn't been called yet. 2014-06-12 10:18:25 +02:00
Florian Bruhin
22a0639825 Connect readyRead signal properly 2014-06-12 10:18:02 +02:00
Florian Bruhin
a0d4429a32 Log download errors 2014-06-12 10:17:49 +02:00
Florian Bruhin
2114f0cd73 Start adding download model/view 2014-06-12 08:02:44 +02:00
Florian Bruhin
ace59e6f01 Fix speed calculation and do it more often 2014-06-11 22:40:28 +02:00
Florian Bruhin
35d35d31da Add some logging 2014-06-11 22:35:02 +02:00
Florian Bruhin
788302890f Add signals to DownloadItem 2014-06-11 22:33:40 +02:00
Florian Bruhin
c61289cedc Fix lint 2014-06-11 21:58:06 +02:00
Florian Bruhin
96891f6241 First working download draft 2014-06-11 21:55:23 +02:00
Florian Bruhin
80e2259df3 Add DownloadItem class 2014-06-11 17:27:39 +02:00
Florian Bruhin
7628c92689 Support platforms where Qt is compiled without SSL support 2014-06-11 15:33:07 +02:00
Florian Bruhin
583546f067 Print nicer message when Qt xkb plugin is missing 2014-06-10 23:11:17 +02:00
Florian Bruhin
5dcb6c4f38 Improve version output 2014-06-10 22:59:14 +02:00
Florian Bruhin
7dd5b1b94e First debugging implementation of downloads 2014-06-10 22:11:17 +02:00
Florian Bruhin
71bc640131 Fix lint 2014-06-10 17:01:00 +02:00
Florian Bruhin
43c0578ede Support closing windows via javascript. 2014-06-10 16:50:14 +02:00
Florian Bruhin
7315712359 Use statusbar to ask if long-running script should be interrupted. 2014-06-10 16:49:56 +02:00
Florian Bruhin
67f64b5e6a Support printing via javascript. 2014-06-10 16:49:44 +02:00
Florian Bruhin
57024f3174 Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser 2014-06-10 16:17:12 +02:00
Florian Bruhin
0e55f4d692 Implement file uploading 2014-06-10 16:16:42 +02:00
Florian Bruhin
2a2c21e0f7 Load webm videos correctly 2014-06-10 15:38:47 +02:00
Florian Bruhin
126a520674 Add some logging for error pages 2014-06-10 15:31:22 +02:00
Florian Bruhin
1c63ff620d Add option to expand tabs 2014-06-10 14:30:31 +02:00
Florian Bruhin
2bcbfce8f9 Merge branch 'master' of ssh://lupin/qutebrowser 2014-06-10 12:02:17 +02:00
Florian Bruhin
12830381cb Add tests for get_qt_args 2014-06-10 12:00:45 +02:00
Florian Bruhin
dffec73db7 Fix get_qt_args with arguments with a value 2014-06-10 11:57:33 +02:00
Florian Bruhin
d495ea4644 Move get_qt_args to utils.misc 2014-06-10 11:54:14 +02:00
Florian Bruhin
05b4070df9 Remove unnecessary "= None"s 2014-06-07 18:26:05 +02:00
Florian Bruhin
6a81710c71 Use HintContext per invocation of hintmanager 2014-06-07 18:07:09 +02:00
Florian Bruhin
742bc83ea3 Clean up version info gathering 2014-06-06 18:58:29 +02:00
Florian Bruhin
6780132e4f More version info 2014-06-06 18:11:04 +02:00
Florian Bruhin
6967002aed Fix logfilter tests by using debug as default level 2014-06-06 17:25:08 +02:00
Florian Bruhin
2f1cd43f9c Change lists to tuples for immutable values 2014-06-06 17:21:35 +02:00
Florian Bruhin
03d754dd86 Fix logfilter bugs 2014-06-06 16:51:24 +02:00
Florian Bruhin
1dbd84b963 Simplify _get_qt_args 2014-06-06 16:44:55 +02:00
Florian Bruhin
1179d84ee8 Process Qt args via argparse 2014-06-06 16:32:57 +02:00
Florian Bruhin
63d17d4675 Group arguments into debug/other 2014-06-06 15:52:37 +02:00
Florian Bruhin
9c9492a706 logfilter: Only filter debug messages 2014-06-06 15:48:42 +02:00
Florian Bruhin
3ceeccb133 Clean up logging init 2014-06-06 12:29:33 +02:00
Florian Bruhin
e6893af3d4 Support colorama to get colored logs on windows 2014-06-06 12:13:32 +02:00
Florian Bruhin
fd220b1b36 Raise CommandError instead of message.error where possible 2014-06-06 11:55:55 +02:00
Florian Bruhin
742a3c1b5d Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser 2014-06-05 13:20:41 +02:00
Florian Bruhin
500ad24cc3 Add keybindings for Ctrl-?/H/J/[ for Delete/Backspace/Return/Escape 2014-06-05 13:20:10 +02:00
Florian Bruhin
cd8f9e6232 Fix lint 2014-06-05 00:08:08 +02:00
Florian Bruhin
361dc94a21 More intelligent harfbuzz choosing. Fixes rendering segfaults. 2014-06-05 00:07:32 +02:00
Florian Bruhin
9be3b0499d We can use QtCore in fix_harfbuzz so use logging 2014-06-04 23:55:34 +02:00
Florian Bruhin
30ce2c98e9 Disable broken :restart for now 2014-06-04 23:17:22 +02:00
Florian Bruhin
da624d54c8 Nicer logging for :restart 2014-06-04 23:09:46 +02:00
Florian Bruhin
d5891b2e86 Get raw config values for completion model 2014-06-04 18:42:21 +02:00
Florian Bruhin
170098683f Fix exception on :set introduced with curitem completion 2014-06-04 18:39:38 +02:00
Florian Bruhin
a065f34613 Add help text for --harfbuzz 2014-06-04 16:18:59 +02:00
Florian Bruhin
f173b19094 s/QuteBrowser/qutebrowser/ 2014-06-04 14:52:12 +02:00
Florian Bruhin
b9abb04e4e Check harfbuzz fix is executed before PyQt is imported 2014-06-04 14:29:47 +02:00
Florian Bruhin
cc27d42250 Use argparse for fix_harfbuzz 2014-06-04 14:15:33 +02:00
Florian Bruhin
af19e6d2e5 Move init to own file qutebrowser.py 2014-06-04 14:11:55 +02:00
Florian Bruhin
104564f6be Init log before creating QApplication 2014-06-04 13:55:46 +02:00
Florian Bruhin
512338d567 Move _parse_args and crash out of Application 2014-06-04 13:51:47 +02:00
Florian Bruhin
57d261ee85 Add a main function to app.py 2014-06-04 13:38:53 +02:00
Florian Bruhin
346ef4ac3d Re-add command argument which was accidentally removed. 2014-06-04 13:37:42 +02:00
Florian Bruhin
a196bc5da9 Add arguments to choose harfbuzz engine 2014-06-04 12:13:51 +02:00
Florian Bruhin
af8c68360a Fix lint 2014-06-04 07:16:48 +02:00
Florian Bruhin
9add8b105c Get rid of NoCompletionsError 2014-06-04 07:16:34 +02:00
Florian Bruhin
311b9f2034 Get rid of FakeDict 2014-06-04 07:16:02 +02:00
Florian Bruhin
055d341760 Make it possible to explicitely sort categories 2014-06-04 07:11:20 +02:00
Florian Bruhin
a3bfc97079 Use an enum for user model roles. 2014-06-04 07:11:07 +02:00
Florian Bruhin
83d8bc47c0 Make it possible to pass a start= argument to enum() 2014-06-04 07:02:04 +02:00
Florian Bruhin
93c6d8ea2f Add current value to completions for settings 2014-06-04 06:44:07 +02:00
Florian Bruhin
062b7b177b Simplify setting value completion models. 2014-06-04 06:42:57 +02:00
Florian Bruhin
2daae86e27 Break long line 2014-06-03 21:12:44 +02:00
Florian Bruhin
af17746c20 Actually respect cookies-store 2014-06-03 20:30:50 +02:00
Florian Bruhin
35a3cc661e Reorder webkit options 2014-06-03 20:28:51 +02:00
Florian Bruhin
40009970df Add option to configure if js statusbar messages should be shown 2014-06-03 19:17:35 +02:00
Florian Bruhin
62908e97c1 Fix javascript statusbar messages 2014-06-03 18:00:53 +02:00
Florian Bruhin
5a6eb2bec3 Improve function match regex 2014-06-03 17:24:12 +02:00
Florian Bruhin
282874cc80 Hide all OpenType warnings. 2014-06-03 17:23:51 +02:00
Florian Bruhin
5e6cddecaf Just change level to DEBUG with suppressed Qt messages 2014-06-03 17:18:20 +02:00
Florian Bruhin
eb426cb870 Suppress OpenType warning message 2014-06-03 17:04:22 +02:00
Florian Bruhin
298e757991 Fix qt warning regex 2014-06-03 17:01:42 +02:00
Florian Bruhin
cc1ea76d9d Clean up shutdown 2014-06-03 16:48:21 +02:00
Florian Bruhin
04c3a912e8 Uninstall Qt message handler on quit.
This caused segfaults while exiting for some reason.
2014-06-03 15:19:48 +02:00
Florian Bruhin
ec25821fae _foo.py file rename [2/2] 2014-06-03 15:01:57 +02:00
Florian Bruhin
fa1e03f56b _foo.py file rename [1/2] 2014-06-03 14:57:57 +02:00
Florian Bruhin
a4c3ce6bdc Fix lint 2014-06-03 14:34:38 +02:00
Florian Bruhin
813783d976 Get rid of _lastmodel in completer 2014-06-03 13:50:13 +02:00
Florian Bruhin
0f41366269 Fix lint 2014-06-03 13:48:12 +02:00
Florian Bruhin
02e92fd0ed Move set_model logging to completer 2014-06-03 13:42:29 +02:00
Florian Bruhin
968bb3d430 Move selection_changed to Completer 2014-06-03 13:37:11 +02:00
Florian Bruhin
7d440426eb Move on_update_completion 2014-06-03 12:59:50 +02:00
Florian Bruhin
2648f283b9 Get rid of _model in completion widget 2014-06-03 12:53:07 +02:00
Florian Bruhin
ff06e753df Start moving stuff to Completer 2014-06-03 12:51:23 +02:00
Florian Bruhin
58c1646e9b Shrink completion if configured to do so 2014-06-03 11:39:53 +02:00
Florian Bruhin
c7b2ff4db5 Make item_count a @property 2014-06-03 10:48:47 +02:00
Florian Bruhin
a555aa66a0 Hide completion if there are no items 2014-06-03 10:46:58 +02:00
Florian Bruhin
e294c01d7d Fix lint 2014-06-03 10:44:19 +02:00
Florian Bruhin
3f0682e5a9 Mark items after filtering 2014-06-03 10:37:04 +02:00
Florian Bruhin
b10f375814 Add item_count method to CompletionFilterModel 2014-06-03 10:16:31 +02:00
Florian Bruhin
ce8ada5024 Get rid of self._completing in completion 2014-06-03 10:06:50 +02:00
Florian Bruhin
8914614f7b Always update completion when cursor position changed 2014-06-03 10:05:01 +02:00
Florian Bruhin
e741744f1d Clear _empty_item_idx correctly. 2014-06-03 09:51:20 +02:00
Florian Bruhin
f2c60c01ae More logging 2014-06-03 09:50:53 +02:00
Florian Bruhin
f82fa297b0 Insert fake empty element when cursor is between spaces.
Known problems:
    - This doesn't work when moving the cursor away from the spaces and moving
      it back; then the completion pattern is wrong.
    - When moving the cursor away from the spaces, the completion isn't updated
      properly.
2014-06-03 07:36:28 +02:00
Florian Bruhin
98b967abaa Completion logging improvements 2014-06-03 06:58:18 +02:00
Florian Bruhin
9bee827d52 Return [''] when splitting empty cmdline 2014-06-03 06:55:08 +02:00
Florian Bruhin
2eb26c96c4 More command splitting cleanup 2014-06-03 06:55:08 +02:00
Florian Bruhin
1d2d435231 Move split_cmdline() out of commands.managers 2014-06-03 06:55:08 +02:00
Florian Bruhin
0c1f611a72 Fix lint 2014-06-03 06:55:08 +02:00
Florian Bruhin
34946d031b Whitespace fix 2014-06-03 06:55:08 +02:00
Florian Bruhin
a389b0f688 Add a quick-complete option.
This moves to the next commandline part when completing if there's only
one possible completion.
2014-06-03 06:55:07 +02:00
Florian Bruhin
749e330383 Ignore completion updates while completing 2014-06-03 06:55:07 +02:00
Florian Bruhin
1928add992 Remove cursor_part_changed signal. 2014-06-03 06:55:07 +02:00
Florian Bruhin
f9eb2af979 Fix cursor position after completing. 2014-06-03 06:55:07 +02:00
Florian Bruhin
1bb757a39e Update cursor part in on_text_edited 2014-06-03 06:55:07 +02:00
Florian Bruhin
962a83b592 Handle parts/prefix in statusbar.command widget 2014-06-03 06:55:07 +02:00
Florian Bruhin
dc655dd40b First try at using cursor position 2014-06-03 06:55:07 +02:00
Florian Bruhin
4d0649a825 Let qt function parsing be more forgiving 2014-06-03 06:54:55 +02:00
Florian Bruhin
6d50ebae49 Less verbose exception logging 2014-06-02 23:29:01 +02:00
Florian Bruhin
2286d1d65a Handle Qt warning category in log handler 2014-06-02 23:16:09 +02:00
Florian Bruhin
6fedc53a4d Suppress libpng warning about color profiles 2014-06-02 23:10:21 +02:00
Florian Bruhin
8aff446a30 Refine dead actute meta-warning 2014-06-02 23:07:46 +02:00
Florian Bruhin
b415773cc7 Use custom Qt message handler 2014-06-02 22:43:32 +02:00
Florian Bruhin
c5230dc347 Use logging system for python warnings 2014-06-02 22:19:35 +02:00
Florian Bruhin
da2d8e1048 Log js console messages as debug, not info 2014-06-02 22:18:41 +02:00
Florian Bruhin
fb7f1b381e Fix lint 2014-06-02 18:01:56 +02:00
Florian Bruhin
0253dd6977 Catch empty standard paths 2014-05-27 16:28:01 +02:00
Florian Bruhin
161b2ef7af Fix whitespace/CRLF 2014-05-27 16:24:26 +02:00
Florian Bruhin
0cac061feb Clear logger handlers for log tests 2014-05-27 16:23:27 +02:00
Florian Bruhin
1ff193e4dd Replace page_ by page() 2014-05-27 16:04:45 +02:00
Florian Bruhin
0976f95db7 Fix docstring 2014-05-27 15:56:44 +02:00
Florian Bruhin
13cb5ddb31 Nicer qute:version with copyright info. 2014-05-27 15:46:39 +02:00
Florian Bruhin
01f28f3e0f Add -V/--version argument. 2014-05-27 15:46:21 +02:00
Florian Bruhin
371c2b998a Add more meta-info to qutebrowser/__init__.py 2014-05-27 15:45:58 +02:00
Florian Bruhin
7fa65a0f1e Add GPL to version output 2014-05-27 15:33:44 +02:00
Florian Bruhin
53655dac02 Don't inherit CommandDispatcher from QObject 2014-05-27 15:12:43 +02:00
Florian Bruhin
2fe5ae413b Fix readline rl_kill_line 2014-05-27 14:58:23 +02:00
Florian Bruhin
404ba37a0a Add tests for readline 2014-05-27 14:58:07 +02:00
Florian Bruhin
0130a15efe Add more RAMHandlerTests. 2014-05-27 13:49:55 +02:00
Florian Bruhin
b76004e7a1 Add tests for LogFilter 2014-05-27 13:36:11 +02:00
Florian Bruhin
b0a131eb1c Add docstrings to tests 2014-05-27 13:06:13 +02:00
Florian Bruhin
f8adeb3234 Add some docs to test_editor.py 2014-05-27 11:52:41 +02:00
Florian Bruhin
ece794e4b4 Add TextModifyTests and ErrorMessageTests 2014-05-27 11:47:43 +02:00
Florian Bruhin
6557fa68a6 More editor test cleanup 2014-05-27 11:30:57 +02:00
Florian Bruhin
c65ebc81da editor: force UTF-8 2014-05-27 11:30:39 +02:00
Florian Bruhin
89a507a0bb Add ArgTests 2014-05-27 11:17:27 +02:00
Florian Bruhin
15f8a3e6dd editor test cleanup 2014-05-27 11:17:14 +02:00
Florian Bruhin
156d63b4b6 Only handle {} as editor arg when alone in argument 2014-05-27 11:16:53 +02:00
Florian Bruhin
8b0144f6a3 Add editor tests 2014-05-27 07:43:29 +02:00
Florian Bruhin
06b0761755 Always clean up editor tempfiles, even on exit != 0 2014-05-27 07:43:07 +02:00
Florian Bruhin
271d00417c Avoid newlines in log 2014-05-26 20:09:46 +02:00
Florian Bruhin
4538745ffb Implement QWebPage:javaScript* 2014-05-26 20:04:44 +02:00
Florian Bruhin
ff1fad073c Use correct logger for NAM init 2014-05-26 19:47:50 +02:00
Florian Bruhin
9428ee6207 Add logging to NetworkManager init 2014-05-26 17:41:21 +02:00
Florian Bruhin
fa01bfbbad Add per-tab inspector like dwb.
This also means the webinspector will always be detached / in its own window.
2014-05-26 15:35:05 +02:00
Florian Bruhin
62407eef33 Revert "Use a splitter for the webinspector"
This reverts commit f1f06b0a19.
2014-05-26 15:13:39 +02:00
Florian Bruhin
6bc0f7e5e7 Revert "Make inspector detachable."
This reverts commit ee241c3f6c.

Conflicts:
	qutebrowser/config/configdata.py
2014-05-26 15:13:33 +02:00
Florian Bruhin
f380eaf4cd Remove statusbar.fg.error setting 2014-05-26 17:03:39 +02:00
Florian Bruhin
edacb23076 Color statusbar on prompts 2014-05-26 16:59:11 +02:00
Florian Bruhin
61d4821065 Add configurable confirmation when closing 2014-05-26 16:51:57 +02:00
Florian Bruhin
8f12df6553 Purge old cookies from cookiejar 2014-05-26 16:09:49 +02:00
Florian Bruhin
6676eefb03 Add keybinding for inspector 2014-05-26 12:20:42 +02:00
Florian Bruhin
15a27a4c96 Fix double import 2014-05-26 12:17:43 +02:00
Florian Bruhin
ee241c3f6c Make inspector detachable. 2014-05-26 12:16:03 +02:00
Florian Bruhin
8eed5a02d4 Don't adjust completion position when inspector is open. 2014-05-26 12:15:40 +02:00
Florian Bruhin
f1f06b0a19 Use a splitter for the webinspector 2014-05-26 12:00:45 +02:00
Florian Bruhin
d00a946497 Set orgname to make inspector settings persistent 2014-05-26 11:47:02 +02:00
Florian Bruhin
24543edcbe Spelling fix 2014-05-26 09:04:38 +02:00
Florian Bruhin
5406f92a5b Don't set QT_FATAL_WARNINGS 2014-05-26 09:02:57 +02:00
Florian Bruhin
22b2fb0be0 Rename some commandline options 2014-05-26 09:02:31 +02:00
Florian Bruhin
bb9f301410 Use getattr to get numeric logging level.
It turns out it was a bad idea to use logging._nameToLevel since that
doesn't exist in python 3.3.
2014-05-26 09:00:45 +02:00
Florian Bruhin
7c3c572519 Increase RAMHandler capacity to 500 2014-05-25 20:28:24 +02:00
Florian Bruhin
be4f1fdd12 Add qute:log special page. 2014-05-25 20:26:26 +02:00
Florian Bruhin
5bf32d80fe Use xmlcharrefreplace for qute:* encoding 2014-05-25 20:26:14 +02:00
Florian Bruhin
8fb54d4c55 More beautiful logging format 2014-05-25 20:13:58 +02:00
Florian Bruhin
7200bf5690 Whitespace 2014-05-25 20:08:37 +02:00
Florian Bruhin
b37ca744b2 Disable coloring when requested/on Windows/no tty 2014-05-25 20:08:07 +02:00
Florian Bruhin
e89fc3d940 Add colored logging 2014-05-25 20:00:48 +02:00
Florian Bruhin
f87e7b76f4 Log to RAM and display log in crash dialog 2014-05-25 18:46:15 +02:00
Florian Bruhin
353a447dd6 Initialize logging by hand, nicer output 2014-05-23 18:22:22 +02:00
Florian Bruhin
6825c669b5 Add the ability to filter logging messages 2014-05-23 16:57:08 +02:00
Florian Bruhin
1e256699f8 Add topic-specific loggers 2014-05-23 16:11:55 +02:00
Florian Bruhin
99bd53de89 Close tabs on right click 2014-05-23 04:12:18 +02:00
Florian Bruhin
1d5a1a29e8 Simplify calling commands with an instance.
We used to use a signal and a function in app.py which executes the command
handler. Now we instead use QCoreApplication.instance() which makes everything
a lot easier and cleaner.
2014-05-22 16:14:43 +02:00
Florian Bruhin
0c0cb48471 Fix lint 2014-05-22 15:44:16 +02:00
Florian Bruhin
897fc0c72f Leave hinting mode when tab changed 2014-05-22 17:50:10 +02:00
Florian Bruhin
7308fa97c5 Leave hinting mode when insert mode is entered 2014-05-22 17:49:18 +02:00
Florian Bruhin
8cddbec9e3 Implement quickmarks 2014-05-22 16:44:47 +02:00
Florian Bruhin
e7da95a3b1 Add question() and confirm_action() to message.py 2014-05-22 16:44:10 +02:00
Florian Bruhin
9a3554a784 Add answered_(yes|no) signals to Question. 2014-05-22 16:43:38 +02:00
Florian Bruhin
89350cbff4 Emit answered signal from statusbar prompt.
This is so we can leave the mode (and hide the command widget) before
emitting the answered signal (and possibly ask something again).
2014-05-22 16:41:58 +02:00
Florian Bruhin
f3fd247282 Make LineConfigParser iterable. 2014-05-22 16:40:54 +02:00
Florian Bruhin
267552fe77 Only re-enable faulthandler when stderr is available 2014-05-22 16:40:04 +02:00
Florian Bruhin
d1b947279e Use arrow keys for completion items 2014-05-22 10:54:18 +02:00
Florian Bruhin
2bcf46194b Add readline-like shortcuts 2014-05-22 10:49:19 +02:00
Florian Bruhin
3a3d8fddee Merge branch 'userscripts' 2014-05-22 08:52:20 +02:00
Florian Bruhin
e7d9a3dc88 Fix completion 2014-05-22 08:40:36 +02:00
Florian Bruhin
22072eac7d Cleanup and documentation in commands/userscripts 2014-05-22 04:12:52 +02:00
Florian Bruhin
8d570b686c Initial userscript support 2014-05-21 19:53:58 +02:00
Florian Bruhin
ecc838d02c Fix ALL the lint 2014-05-21 17:29:09 +02:00
Florian Bruhin
1f4ca39e53 Fix wrong conditional 2014-05-21 15:50:08 +02:00
Florian Bruhin
2df8500792 Move ExternalEditor to own file 2014-05-21 15:47:21 +02:00
Florian Bruhin
60f25373e3 Merge branch 'editor'
Conflicts:
	qutebrowser/browser/commands.py
	qutebrowser/utils/misc.py
2014-05-21 15:37:18 +02:00
Florian Bruhin
407af1b02c Pass elem to on_editing_finished 2014-05-21 14:24:45 +02:00
Florian Bruhin
a77a25e6c1 Keep a hard reference to ExternalEditor 2014-05-21 14:22:46 +02:00
Florian Bruhin
f72a72e98c Add FIXME for runtime location 2014-05-21 12:53:26 +02:00
Florian Bruhin
7c351caf77 Don't warn on prompt keychain bindings 2014-05-20 17:50:09 +02:00
Florian Bruhin
cfd70e7821 Make yes/no questions work 2014-05-20 12:05:14 +02:00
Florian Bruhin
f43549d452 Clean up prompt code 2014-05-20 11:03:55 +02:00
Florian Bruhin
20f8c2b8b4 Add a new MinimalLineEdit widget 2014-05-20 10:11:05 +02:00
Florian Bruhin
1a959a39b2 Don't inherit Prompt from TextBase 2014-05-20 09:15:15 +02:00
Florian Bruhin
b1b1580136 Add some docstrings to prompt 2014-05-20 09:14:35 +02:00
Florian Bruhin
f33f2e0a0f Convert URL to proxy correctly.
Before, user/password was set to an empty string even when not set in
the URL, causing Qt to reread this information all the time and
call proxyAuthenticationRequired even when the entered info was correct.
2014-05-20 08:56:58 +02:00
Florian Bruhin
d4c90b4a60 Add proxy authentication 2014-05-20 08:56:56 +02:00
Florian Bruhin
77eb7d621a Handle cancelling of authentication 2014-05-20 08:56:54 +02:00
Florian Bruhin
9ffc8d74c4 Save temporary username in Question object 2014-05-20 08:56:52 +02:00
Florian Bruhin
84fdd0f4f7 Get rid of accepted signal 2014-05-20 08:56:50 +02:00
Florian Bruhin
97df8fc172 Move some attributes to dedicated Question object 2014-05-20 08:56:48 +02:00
Florian Bruhin
7ca605ade6 First try at statusbar prompt 2014-05-20 08:56:46 +02:00
Florian Bruhin
9ce06c75bc Clear hover URL when changing tab 2014-05-19 18:10:48 +02:00
Florian Bruhin
c24e92e519 Make hover URL display more reliable.
This uses a similiar mechanism to the statusbar text now.
Previously in some corner cases (e.g. reloading while hovering) the
incorrect link was displayed.
2014-05-19 18:08:33 +02:00
Florian Bruhin
d6c593f035 Use properties rather than overwriting __setattr__ 2014-05-19 17:08:51 +02:00
Florian Bruhin
ebefdfb5a9 Fix pasting in new tab 2014-05-19 15:09:12 +02:00
Florian Bruhin
633b87f61b Yank cleanup 2014-05-19 11:56:51 +02:00
Florian Bruhin
fe81e46f7c Small clipboard cleanup 2014-05-19 09:52:58 +02:00
Florian Bruhin
118d3e03cd Revert "Make scroll bars hideable"
This reverts commit 1bfbdd79e4.

Conflicts:
	qutebrowser/browser/commands.py
	qutebrowser/config/configdata.py
	qutebrowser/widgets/webview.py
2014-05-19 09:50:56 +02:00
Florian Bruhin
696fdc397b Revert "Reimplement wheelEvent of WebView to fix scrolling"
This helped with hiding scrollbars, but it handles scrolling incorrectly
with multiple scrollable divs.

This reverts commit 5c4ce7ae09.
2014-05-19 09:46:38 +02:00
Florian Bruhin
a795b24d86 Merge branch 'select-insert' 2014-05-19 08:36:43 +02:00
Florian Bruhin
d450257485 Add search-prev and bind N to it 2014-05-19 05:05:54 +02:00
Florian Bruhin
da2dc4861f Rename nextsearch command to search-next 2014-05-19 04:21:30 +02:00
Florian Bruhin
42f183d825 Handle hiding command widget properly 2014-05-19 04:19:16 +02:00
Florian Bruhin
d1f921cc39 Print command name in ArgumentCountException 2014-05-19 04:06:12 +02:00
Florian Bruhin
274608b1d9 Continue displaying queued messages after immediate ones 2014-05-19 04:04:59 +02:00
Florian Bruhin
f0d1d4ed45 Selectively queue messages rather than unqueueing. 2014-05-19 03:40:10 +02:00
Florian Bruhin
8ed373423a Fix undo 2014-05-18 08:19:27 +02:00
Florian Bruhin
869c0d82e1 Really fix tabclose 2014-05-18 08:18:20 +02:00
Florian Bruhin
d643d6ce44 Fix broken :yank 2014-05-18 08:14:11 +02:00
Florian Bruhin
578a58145c Fix tab closing 2014-05-18 08:08:58 +02:00
Florian Bruhin
1ec0766587 Rename CurCommandDispatcher to CommandDispatcher 2014-05-18 08:04:27 +02:00
Florian Bruhin
8e4aaf1706 Whitespace adjustments 2014-05-18 00:36:29 +02:00
Florian Bruhin
d2049eb462 Fix blank line 2014-05-17 23:46:41 +02:00
Florian Bruhin
bca3909a10 Remove _tabs when unneeded 2014-05-17 23:46:06 +02:00
Florian Bruhin
65aee9d991 Add ui section to config 2014-05-17 23:45:31 +02:00
Florian Bruhin
49ad41949a Remove some interpolations from default config 2014-05-17 23:39:26 +02:00
Florian Bruhin
844e536fff Command cleanup 2014-05-17 23:22:10 +02:00
Florian Bruhin
0f943f747c Reorder some functions 2014-05-17 23:15:42 +02:00
Florian Bruhin
c7cf0aaf9a Clean up webview and move commands 2014-05-17 22:38:07 +02:00
Florian Bruhin
d901fe69e6 Rename some commands 2014-05-16 23:01:40 +02:00
Florian Bruhin
19da80e58e Improve logging in signal filter 2014-05-16 21:49:35 +02:00
Florian Bruhin
5c4ce7ae09 Reimplement wheelEvent of WebView to fix scrolling
Hiding scrollbars in 1bfbdd79e4 broke
scrolling because the WebKit implementation wants a scrollbar to do
scrolling.

We fix this by just handling the mouse wheel ourselves.
2014-05-16 21:37:43 +02:00
Florian Bruhin
89cd6d87cc Treat select elements as insert mode 2014-05-16 17:43:06 +02:00
Florian Bruhin
2c2c79af2e Display some messages immediately 2014-05-16 17:21:43 +02:00
Florian Bruhin
bccf912958 Ignore duplicated messages 2014-05-16 16:50:53 +02:00
Florian Bruhin
39249bce9d Display texts immediately if possible 2014-05-16 16:43:14 +02:00
Florian Bruhin
7eb19e2a1e Start implementing message-timeout 2014-05-16 15:33:36 +02:00
Florian Bruhin
1bfbdd79e4 Make scroll bars hideable 2014-05-16 14:20:37 +02:00
Florian Bruhin
8f58d22ad7 Fix lint 2014-05-16 07:49:04 +02:00
Florian Bruhin
480e222d6d Log load status changes 2014-05-16 07:47:06 +02:00
Florian Bruhin
70214bfedf Add elide() 2014-05-16 07:46:56 +02:00
Florian Bruhin
7bd6302d13 Connect load_status_changed signal correctly 2014-05-16 07:12:27 +02:00
Florian Bruhin
e41d8f1e46 Fix link colors (except for LoadStatus).
This was broken when splitting statusbar into files as the class name
had changed.
2014-05-16 07:05:55 +02:00
Florian Bruhin
b14ff27e0c Remove unused import 2014-05-15 22:52:37 +02:00
Florian Bruhin
b91274cfcf Fix some other small bugs with new signal implementation 2014-05-15 22:31:01 +02:00
Florian Bruhin
a70aa212e0 Fix lint 2014-05-15 22:02:43 +02:00
Florian Bruhin
1ca80fec8e Make stuff run again 2014-05-15 19:02:20 +02:00
Florian Bruhin
d3eaeaac91 First steps at getting rid of signal cache 2014-05-15 17:57:08 +02:00
Florian Bruhin
0d104b5813 Revert "Open startpage with :tabopen/:backtabopen if no URL is given"
This reverts commit 68556a0e87.

This broke keybindings with partial commands, e.g. o/O.
2014-05-15 16:54:08 +02:00
Florian Bruhin
452e9bfb5e Simplify NeighborList:getitem 2014-05-15 16:38:27 +02:00
Florian Bruhin
68556a0e87 Open startpage with :tabopen/:backtabopen if no URL is given 2014-05-15 16:32:00 +02:00
Florian Bruhin
326280f910 Fix consistency and spelling in docstrings/comments 2014-05-15 16:27:34 +02:00
Florian Bruhin
537c45f518 Check zoom percentage is >= 0% 2014-05-15 15:41:54 +02:00
Florian Bruhin
8b13658eaf NeighborList: Don't snap in values if they match exactly 2014-05-15 15:38:53 +02:00
Florian Bruhin
f97c87628b Handle multi-instance better with crash.log 2014-05-15 15:26:20 +02:00
Florian Bruhin
659fe5126b Display error dialog when started after segfault 2014-05-15 12:20:03 +02:00
Florian Bruhin
8fe4000e41 Split CrashDialog into ExceptionCrashDialog and _CrashDialog 2014-05-15 11:56:22 +02:00
Florian Bruhin
ba2951d0ec Fix lint 2014-05-15 10:56:28 +02:00
Florian Bruhin
ec75382a6d Allow text in crash dialog to be copied 2014-05-15 10:54:24 +02:00
Florian Bruhin
5a6326922e Don't cache cur_ssl_errors 2014-05-15 10:50:07 +02:00
Florian Bruhin
e8a42e6cd3 Remove _signal_needs_caching from SignalCache 2014-05-15 10:49:51 +02:00
Florian Bruhin
78c41fffc9 Add :crash segfault command 2014-05-15 10:33:11 +02:00
Florian Bruhin
765e20f881 Try to preserve git commit id with setup.py/freeze.py 2014-05-15 07:13:49 +02:00
Florian Bruhin
d801c35e3f Fix typo 2014-05-15 00:03:54 +02:00
Florian Bruhin
b96efddbdc Make tab close buttons work 2014-05-15 00:02:40 +02:00
Florian Bruhin
603fbdf239 Range-check all values passed to C code. 2014-05-15 00:02:20 +02:00
Florian Bruhin
daf42fdc0d Split WebView.mouseEvent into smaller chunks 2014-05-14 20:59:21 +02:00
Florian Bruhin
cf02330b42 Make hinting work again.
6b2d2713f7 broke this as we accidentally
iterate over self._frames before setting it.
2014-05-14 18:54:34 +02:00
Florian Bruhin
a045511962 Use exceptions for command errors 2014-05-14 18:00:40 +02:00
Florian Bruhin
ed61244964 Make sure scroll count is int 2014-05-14 17:28:47 +02:00
Florian Bruhin
651eab1032 Return after error when there's no hint to follow 2014-05-14 14:56:13 +02:00
Florian Bruhin
a86a3427fc Fix broken faulthandler condition 2014-05-14 14:38:00 +02:00
Florian Bruhin
0508f509ec Fix lint on Windows 2014-05-14 08:59:24 +02:00
Florian Bruhin
e786fe4e82 Add restart command 2014-05-14 08:56:42 +02:00
Florian Bruhin
4a2fee8b1c Fix earlyinit to run properly on Windows.
signal.SIGUSR1 is not available on Windows so we import signal and check
dynamically if SIGUSR1 is available instead.
2014-05-14 08:52:40 +02:00
Florian Bruhin
876dcad28f Fix some more escaped quotes 2014-05-13 22:18:59 +02:00
Florian Bruhin
f448aeebda Use property to iterate over tabs 2014-05-13 21:25:16 +02:00
Florian Bruhin
6b2d2713f7 Clean up HintManager.start() 2014-05-13 21:13:53 +02:00
Florian Bruhin
bdd0846397 Move python check to separate file 2014-05-13 19:46:57 +02:00
Florian Bruhin
02e8e2236e Clean up earlyinit 2014-05-13 19:24:43 +02:00
Florian Bruhin
8fddd328f6 Move early init code to own file 2014-05-13 18:01:10 +02:00
Florian Bruhin
0b3854bff1 Work around segfault in hintmanager 2014-05-13 13:42:30 +02:00
Florian Bruhin
c52caa1427 Leave hint mode when page loading started. 2014-05-13 11:17:36 +02:00
Florian Bruhin
abe183f024 Remove logging from webelem.py 2014-05-13 11:17:22 +02:00
Florian Bruhin
1c4bb0214d Handle cx_freeze in read_file. 2014-05-13 10:39:37 +02:00
Florian Bruhin
bf639602f5 Check if sys.stdout is not None before using it.
When using pythonw (e.g. with cx_Freeze), sys.__stdout__ and sys.stdout
will be None, so we don't need to flush it.

This also means faulthandler won't work correctly, so we don't enabled
it if we don't have an stdout.
2014-05-13 10:38:27 +02:00
Florian Bruhin
d9bb1e904f Support back/forward mouse buttons 2014-05-13 09:53:29 +02:00
Florian Bruhin
4b78e9a9f5 Add missing docstring 2014-05-13 07:11:46 +02:00
Florian Bruhin
55ea24e431 Split statusbar into multiple files 2014-05-13 07:10:50 +02:00
Florian Bruhin
3c4866f3d9 Add show-favicons option 2014-05-12 23:03:55 +02:00
Florian Bruhin
297a0e65c4 Work around the tabbar cut font issue 2014-05-12 21:23:16 +02:00
Florian Bruhin
fd6e739281 Change _error and _urltype to class attributes. 2014-05-12 18:35:26 +02:00
Florian Bruhin
0c4e7c5fe3 Fix class name in url stylesheet 2014-05-12 18:35:16 +02:00
Florian Bruhin
512625cee1 Support to show SSL status with URL color 2014-05-12 18:00:44 +02:00
Florian Bruhin
7c1ba7ab48 Fix lint 2014-05-12 17:46:15 +02:00
Florian Bruhin
7b7c82fe45 Also check if invalid keys are processed 2014-05-12 17:43:12 +02:00
Florian Bruhin
41a1671630 Add tests for basekeyparser 2014-05-12 17:39:37 +02:00
Florian Bruhin
c76819a8b0 Use loggings.warning instead of warn 2014-05-12 17:39:17 +02:00
Florian Bruhin
8ac215fa52 Clear old keybindings when rereading config. 2014-05-12 17:39:04 +02:00
Florian Bruhin
c3816b2820 Make min/max tab width configurable 2014-05-12 16:04:43 +02:00
Florian Bruhin
7b2961f23e Fix some backslash-quotes 2014-05-12 15:58:09 +02:00
Florian Bruhin
8ff4b6dd99 Fix lint 2014-05-12 14:52:04 +02:00
Florian Bruhin
db7077d94f Clean up javascript_escape 2014-05-12 14:33:12 +02:00
Florian Bruhin
fd43248d89 Remove needs_js for editor 2014-05-12 14:05:05 +02:00
Florian Bruhin
fa4b914326 Add tests for get_child_frames 2014-05-12 13:26:11 +02:00
Florian Bruhin
2ac787598d Add tests for is_visible with iframes 2014-05-12 12:16:41 +02:00
Florian Bruhin
6cd8fd407f Make copies of geometries before modifying them 2014-05-12 12:06:08 +02:00
Florian Bruhin
80d4068ad5 Clean up test_webelem 2014-05-12 11:41:35 +02:00
Florian Bruhin
57e465bb2d Add ssl-strict setting 2014-05-12 11:22:32 +02:00
Florian Bruhin
df3528e454 Fix lint 2014-05-12 11:22:17 +02:00
Florian Bruhin
366af0dd4c Add tests for CSS visibility attributes 2014-05-12 11:07:08 +02:00
Florian Bruhin
535c7c316c Fix tests for webelem.is_visible 2014-05-12 10:59:59 +02:00
Florian Bruhin
0c9074f71b Handle QWebElements with an invalid geometry correctly 2014-05-12 10:59:30 +02:00
Florian Bruhin
3974c4dd88 Check hidden CSS elements 2014-05-12 10:58:23 +02:00
Florian Bruhin
419caf7116 Rename rect_on_screen to rect_on_view 2014-05-12 10:05:00 +02:00
Florian Bruhin
50f31ca7cb Handle visibility of elements on screen correctly 2014-05-12 10:04:27 +02:00
Florian Bruhin
c61af3c805 Don't place hints in invisible frames 2014-05-12 09:17:05 +02:00
Florian Bruhin
31a1e91866 Make hitTestResult work with frames correctly 2014-05-12 08:28:44 +02:00
Florian Bruhin
4eebe2dc57 First try at hinting with frames 2014-05-12 07:49:44 +02:00
Florian Bruhin
381d36263c Fix font-size-* in settings 2014-05-11 22:03:00 +02:00
Florian Bruhin
3deeaede8a Change completion title color to white 2014-05-11 21:58:40 +02:00
Florian Bruhin
195c7d6ef7 Work around binding = 2014-05-11 21:55:41 +02:00
Florian Bruhin
fd9f801cab Define some magic methods for usertypes 2014-05-09 22:11:33 +02:00
Florian Bruhin
2190d1bb49 Add font-size-* to QWebSettings. 2014-05-09 21:02:10 +02:00
Florian Bruhin
c2af513ae2 Split CompletionDelegate into own file 2014-05-09 20:25:16 +02:00
Florian Bruhin
5f1cb2ede3 Restyle completion to be dark 2014-05-09 20:25:16 +02:00
Florian Bruhin
6417c7d875 Turn off horizontal scrollbar in completer 2014-05-09 19:12:46 +02:00
Florian Bruhin
5a6208862e Add cmdutils.arg_or_count 2014-05-09 19:12:08 +02:00
Florian Bruhin
63ce8e0966 Set min-/max-width for tabs 2014-05-09 17:59:13 +02:00
Florian Bruhin
7966298a64 Don't pass parent to print dialogs. 2014-05-09 17:40:19 +02:00
Florian Bruhin
edc9d0810c Use QCoreApplication.instance() 2014-05-09 17:01:05 +02:00
Florian Bruhin
3c098060d1 Don't handle auto-insert-mode when not needed 2014-05-09 16:43:08 +02:00
Florian Bruhin
5044f98f2e Don't leave insert mode when loading finished 2014-05-09 16:36:53 +02:00
Florian Bruhin
2c314d61cf Flush stdout before printing 2014-05-09 16:25:50 +02:00
Florian Bruhin
662ae603c7 Flush stdout before printing warning 2014-05-09 16:24:44 +02:00
Florian Bruhin
502cb20c2d Only leave insert mode if mainFrame started loading 2014-05-09 16:18:04 +02:00
Florian Bruhin
59a89d31fe Add reasons why modes are entered/left 2014-05-09 16:03:46 +02:00
Florian Bruhin
91d1be1020 Split tab_move into _tab_move_absolute/relative 2014-05-09 15:52:03 +02:00
Florian Bruhin
db6ab7212f Move cmd/count splitting out of _handle_single_key 2014-05-09 15:37:00 +02:00
Florian Bruhin
e88ce5e837 Fix CRLF in depenencies.py 2014-05-09 15:32:01 +02:00
Florian Bruhin
1785294a43 Fix some lint 2014-05-09 15:30:27 +02:00
Florian Bruhin
e09b34a744 Fix esc handling on BaseKeyParser 2014-05-09 15:28:07 +02:00
Florian Bruhin
d4672f324a Improve modeman logging 2014-05-09 15:24:41 +02:00
Florian Bruhin
0d6ecf04bf Don't bind '=' because configparser fucks up 2014-05-09 15:00:23 +02:00
Florian Bruhin
f7e6dc0244 Add zoom command. 2014-05-09 14:20:26 +02:00
Florian Bruhin
7868e57520 Add snap_in/fuzzyval to NeighborList 2014-05-09 14:20:10 +02:00
Florian Bruhin
601221fa62 Add binding for Ctrl-Alt-p (print) 2014-05-09 13:16:16 +02:00
Florian Bruhin
a4556a956e Add bindings for ss/sl/sk (set/set_temp/set keybind) 2014-05-09 13:14:46 +02:00
Florian Bruhin
1843301a7e Add keybinding for save 2014-05-09 13:12:39 +02:00
Florian Bruhin
95f2950335 Add stop command (ctrl-s) 2014-05-09 13:11:47 +02:00
Florian Bruhin
05f38e15a6 Add command home 2014-05-09 13:09:37 +02:00
Florian Bruhin
ee72d682ad Add binding: ctrl-n -> leave_mode 2014-05-09 12:13:12 +02:00
Florian Bruhin
4361220a48 Add bindings for xo/xO (backtabopen(cur)) 2014-05-09 12:10:03 +02:00
Florian Bruhin
96d456fdee New command: tab_focus_last / Ctrl-Tab 2014-05-09 11:58:49 +02:00
Florian Bruhin
4e7eb41cb9 Add command tab_move (gm/gl/gr) 2014-05-09 11:47:25 +02:00
Florian Bruhin
87e94a2c68 Add T command / refactor focus_tab 2014-05-09 11:29:25 +02:00
Florian Bruhin
e6af8bb7ae Add only/co command 2014-05-09 11:24:33 +02:00
Florian Bruhin
8fc12fea5f Refactor tabclose 2014-05-09 11:20:17 +02:00
Florian Bruhin
1570fc8a95 Nice error messages on import errors 2014-05-09 11:06:05 +02:00
Florian Bruhin
01d1b18c8f Fix indent 2014-05-09 09:20:11 +02:00
Florian Bruhin
590ab887cd Remove deprecated FIXME 2014-05-09 09:19:54 +02:00
Florian Bruhin
489a5cd082 Add tests for get_standard_dir under Windows 2014-05-09 09:16:24 +02:00
Florian Bruhin
419d47afd3 Split paths correctly in get_standard_dir 2014-05-09 09:16:09 +02:00
Florian Bruhin
a6f8602276 Don't use self with self.cur_dir. 2014-05-09 09:15:00 +02:00
Florian Bruhin
f411741389 Correct path separator on Windows 2014-05-09 09:13:08 +02:00
Florian Bruhin
7d8883fd11 Use QCoreApplication::applicationName in get_standard_dir 2014-05-09 09:12:32 +02:00
Florian Bruhin
c82e050deb Fix checks 2014-05-09 08:46:14 +02:00
Florian Bruhin
6609fc8503 Add tests for utils.misc.get_standard_dir 2014-05-09 08:43:31 +02:00
Florian Bruhin
ef05175713 Add test helper to set temporary value 2014-05-09 07:44:37 +02:00
Florian Bruhin
3b2ae6bcf1 Add warning for dead_actute warning.
Yo dawg, I herd you like warnings!
2014-05-09 06:57:44 +02:00
Florian Bruhin
6a6807fde9 Reorganize test files 2014-05-09 06:57:35 +02:00
Florian Bruhin
70c8df095e Switch from appdirs to QStandardPaths 2014-05-08 22:33:24 +02:00
Florian Bruhin
ed0d0d8ff7 Handle tab titles via onUrlChanged 2014-05-08 21:04:27 +02:00
Florian Bruhin
bf19cb7536 Add window-open-behaviour setting 2014-05-08 20:43:40 +02:00
Florian Bruhin
4eb6f896b0 Remove unused import in hints.py 2014-05-08 20:36:23 +02:00
Florian Bruhin
e2a2ed8850 Support QWebView::createWindow (opening windows via js) 2014-05-08 20:36:05 +02:00
Florian Bruhin
586455bbad Fix scrollbar click bug 2014-05-08 11:50:46 +02:00
Florian Bruhin
dc01509633 Fix description for webkit maximum-pages-in-cache 2014-05-08 09:05:38 +02:00
Florian Bruhin
214cda91bd Nicer error messages for focus_tab 2014-05-08 09:03:48 +02:00
Florian Bruhin
a76c7b56f1 Fix lingering PyQt exception 2014-05-07 18:00:38 +02:00
Florian Bruhin
45621b0645 Do a hard exit on crash 2014-05-07 17:29:28 +02:00
Florian Bruhin
68b134b4a9 Don't filter events if mainwindow is not focused 2014-05-07 17:20:01 +02:00
Florian Bruhin
09f7e7a3ae Don't crash when opening qute:pyeval without :pyeval. 2014-05-07 09:03:46 +02:00
Florian Bruhin
285a1c86b4 Bind pgup/pgdown/shift+space 2014-05-07 07:40:36 +02:00
Florian Bruhin
625d369c33 Add check for modeman.mode property 2014-05-06 23:17:05 +02:00
Florian Bruhin
14873285e6 Fix enum bugs 2014-05-06 21:09:09 +02:00
Florian Bruhin
164dcfb6bd Always click elements in the center when hinting 2014-05-06 21:07:20 +02:00
Florian Bruhin
077d3be2e0 Detect local files correctly 2014-05-06 20:24:53 +02:00
Florian Bruhin
557805c8b2 Don't pass an empty QPrinter to QPrintDialog.
This was garbage collected on Linux when the dialog was opened, leading
to segfaults when the printer was changed in the dialog.

But actually we don't need it at all, so we just drop it.
2014-05-06 18:31:08 +02:00
Florian Bruhin
db20cf3701 Handle backspace correctly in HintKeyParser 2014-05-06 17:04:34 +02:00
Florian Bruhin
0f8926ca99 Remember last pressed key category 2014-05-06 17:04:06 +02:00
Florian Bruhin
68ff922525 Add logging to basekeyparser 2014-05-06 17:03:16 +02:00
Florian Bruhin
dd3ab0e336 Don't handle backspace as text keypress 2014-05-06 17:03:01 +02:00
Florian Bruhin
e2ded2e0ad Add logging to handle_partial_key 2014-05-06 17:02:44 +02:00
Florian Bruhin
764c37c8d6 Hide elements instead of deleting them 2014-05-06 17:02:32 +02:00
Florian Bruhin
4999a59470 Add pastebin button to crash dialog 2014-05-06 15:36:15 +02:00
Florian Bruhin
7fb0a7745b Don't treat single words as URL 2014-05-06 14:25:11 +02:00
Florian Bruhin
5656921a22 Don't add empty URLs to URL stack 2014-05-06 14:08:40 +02:00
Florian Bruhin
e683d85799 Add quick and dirty fix for hint clicking 2014-05-06 14:03:48 +02:00
Florian Bruhin
9553cb6872 Clean up config type order 2014-05-06 13:10:38 +02:00
Florian Bruhin
cbc363912e Merge None{Int,String} with Int/String conftype 2014-05-06 13:00:49 +02:00
Florian Bruhin
a0e71dc86e Don't transform strings in config to lowercase 2014-05-06 12:55:26 +02:00
Florian Bruhin
f6c3e00d59 Use NoneString config type for settings with Qt defaults.
This fixes wikipedia looking ugly because setUserStylesheet gets called
with an empty string.
2014-05-06 12:20:02 +02:00
Florian Bruhin
1a3ed11070 Quit properly on debugger exit 2014-05-06 12:11:00 +02:00
Florian Bruhin
3c20b78d8b Fix config typo 2014-05-06 12:04:56 +02:00
Florian Bruhin
de7c6a63b4 Fix shutdown of networkmanager 2014-05-06 10:53:38 +02:00
Florian Bruhin
70d6efff96 Elements might be deleted already when hint mode is left 2014-05-06 10:04:40 +02:00
Florian Bruhin
e02b84d7ef Add some debug logging for click targets 2014-05-06 09:09:23 +02:00
Florian Bruhin
42c1ea5788 Rename _tabopen to tabopen and tabopen to tabopen_cmd 2014-05-06 08:53:40 +02:00
Florian Bruhin
f8195dc600 Connect tab.open_tab to correct internal slot. 2014-05-06 08:51:10 +02:00
Florian Bruhin
5ce49553d8 Stop logging config values.
This is just too much noise...
2014-05-06 08:36:32 +02:00
Florian Bruhin
e5000c315d Revert "Use global HintManager"
This reverts commit a76d68f564.

WTF. I thought I reset --hard-ed that one?
2014-05-06 07:11:20 +02:00
Florian Bruhin
3753e87465 Depend on appdirs instead of bundling 2014-05-06 06:22:28 +02:00
Florian Bruhin
317cdada8c Log messages 2014-05-05 22:36:08 +02:00
Florian Bruhin
3eaf1ec6d8 Remove old logging 2014-05-05 22:34:58 +02:00
Florian Bruhin
1bd6a61e5a Add basic proxy support 2014-05-05 22:09:01 +02:00
Florian Bruhin
8f239b4a95 Add proxy settings 2014-05-05 22:07:41 +02:00
Florian Bruhin
a76d68f564 Use global HintManager 2014-05-05 20:28:29 +02:00
Florian Bruhin
c8fd0937b0 Revert "Use global object dict for global objects"
This reverts commit bf2c7831c8.

This was a bad idea as we need to access some of the main attributes
from commands via instance=...
2014-05-05 20:12:20 +02:00
Florian Bruhin
bf2c7831c8 Use global object dict for global objects 2014-05-05 19:12:47 +02:00
Florian Bruhin
938fbd5608 Add ImmutableDict 2014-05-05 19:12:41 +02:00
Florian Bruhin
c561931699 Also rename options 2014-05-05 18:37:40 +02:00
Florian Bruhin
5f7759eaed Rename some stuff in config 2014-05-05 18:01:43 +02:00
Florian Bruhin
36e52721da Fix CRLFs in cookies.py 2014-05-05 17:56:35 +02:00
Florian Bruhin
667b255d01 Use QApplication for global singletons 2014-05-05 17:56:14 +02:00
Florian Bruhin
ff272df6e4 Clean up app.py 2014-05-05 16:44:48 +02:00
Florian Bruhin
40720d3451 Whoops 2014-05-05 16:36:59 +02:00
Florian Bruhin
ae95b5ea3b Basic cookie handling 2014-05-05 16:28:43 +02:00
Florian Bruhin
a4d80ddcac Fix checks 2014-05-05 15:24:04 +02:00
Florian Bruhin
ba334a04fc Add tests for utils.webelem 2014-05-05 15:16:27 +02:00
Florian Bruhin
a2a786ddd0 Add test_signalutils 2014-05-05 14:44:36 +02:00
Florian Bruhin
2e744cf96d Use sys.platform.startswith 2014-05-05 14:19:06 +02:00
Florian Bruhin
182303b613 Better checks for shell_escape 2014-05-05 14:17:56 +02:00
Florian Bruhin
db2cabdaf2 Add test_urlutils 2014-05-05 13:41:54 +02:00
Florian Bruhin
c8882cd75e Fix protocol detection in _is_url_naive 2014-05-05 13:36:36 +02:00
Florian Bruhin
8b8a17f535 Small urlutils fixes 2014-05-05 13:08:20 +02:00
Florian Bruhin
f7daa464ba Add tests for utils.misc 2014-05-05 12:16:12 +02:00
Florian Bruhin
8220a99219 Replace quotes properly 2014-05-05 12:15:31 +02:00
Florian Bruhin
ee1961cb42 Fix safe_shlex_split when both conditions are true 2014-05-05 12:06:44 +02:00
Florian Bruhin
c0ed2f52e6 Add tests for enum/fakedict 2014-05-05 11:51:04 +02:00
Florian Bruhin
3b75bbf495 Adjust shell_escape to maybe work on windows 2014-05-05 11:09:10 +02:00
Florian Bruhin
85c4bb823f Fix lint 2014-05-05 10:09:19 +02:00
Florian Bruhin
9cf713cbe4 Use a metaclass for Enums for easier reverse mapping 2014-05-05 10:08:06 +02:00
Florian Bruhin
4ebe643ea6 Use simple enums for constants 2014-05-05 07:45:36 +02:00
Florian Bruhin
970d8fd7ba Shorter completion header texts 2014-05-04 18:06:25 +02:00
Florian Bruhin
677678be81 Refactor websettings.py 2014-05-04 01:50:37 +02:00
Florian Bruhin
4ff5431436 Fix checks 2014-05-04 01:33:01 +02:00
Florian Bruhin
ec6066c7ba Show favicons 2014-05-04 01:28:34 +02:00
Florian Bruhin
c9f7d6771a Enable persistent webkit storage 2014-05-04 01:11:19 +02:00
Florian Bruhin
851f473e0c Add more webkit settings 2014-05-04 01:06:52 +02:00
Florian Bruhin
cece9125ac Add user stylesheet setting 2014-05-03 16:13:32 +02:00
Florian Bruhin
ff37f03725 Explain why we use subprocess/QProcess. 2014-05-03 14:27:44 +02:00
Florian Bruhin
9e609bae8d Add :spawn command 2014-05-03 14:25:22 +02:00
Florian Bruhin
8ada39ff8b Add focus_tab command 2014-05-03 00:32:43 +02:00
Florian Bruhin
f7fa315890 Better URL detection 2014-05-03 00:20:01 +02:00
Florian Bruhin
af68474fc3 Make sure frame is not None in HintManager.start 2014-05-02 18:57:59 +02:00
Florian Bruhin
c33fc62d2f Fix lint 2014-05-02 17:53:59 +02:00
Florian Bruhin
efc613811f Implement numeric hints 2014-05-02 17:53:16 +02:00
Florian Bruhin
54d00938c5 Show config values correctly 2014-05-02 16:53:37 +02:00
Florian Bruhin
0fc789509f Use setData of model instead of item 2014-05-02 16:29:01 +02:00
Florian Bruhin
e54a649337 Add on_config_changed slot for models. 2014-05-02 16:23:51 +02:00
Florian Bruhin
5933585a23 Resize model columns properly by hand 2014-05-02 16:23:35 +02:00
Florian Bruhin
35006bd246 Add a misc column to models. 2014-05-02 16:23:11 +02:00
Florian Bruhin
204cffc4cf Add logging when tabbing 2014-05-02 15:24:36 +02:00
Florian Bruhin
cbb9a2656f Spelling fix 2014-05-02 15:24:26 +02:00
Florian Bruhin
45e1feeb27 Handle arguments after aliases correctly when splitting. 2014-05-02 15:24:10 +02:00
Florian Bruhin
1655ddbfac Restore original command when splitting aliases 2014-05-02 15:23:45 +02:00
Florian Bruhin
b961cb8907 Regenerate CommandCompletionModel if necessary. 2014-05-02 15:23:25 +02:00
Florian Bruhin
f8ab7e5052 Add aliases to CommandCompletionModel 2014-05-02 15:22:45 +02:00
Florian Bruhin
6557b8303a Disallow spaces in aliases. 2014-05-02 15:21:48 +02:00
Florian Bruhin
f4a59b2d71 Support forbidden chars in strings. 2014-05-02 15:21:33 +02:00
Florian Bruhin
b74a97580f Handle completions for ValueList sections correctly 2014-05-02 14:18:40 +02:00
Florian Bruhin
379a6219ec Fix config escape comment 2014-05-02 13:30:51 +02:00
Florian Bruhin
f935d99d52 Don't escape values anymore 2014-05-02 13:28:04 +02:00
Florian Bruhin
b6b9738c25 Revert "Don't escape values in configdata."
This reverts commit cb0d0d1af2.
2014-05-02 13:24:10 +02:00
Florian Bruhin
24939603ea Revert "Escape values in default config comments"
This reverts commit be86ca03e2.
2014-05-02 13:24:07 +02:00
Florian Bruhin
de368aa43d Revert "More escaping fixes"
This reverts commit fcb10e2bff.
2014-05-02 13:24:00 +02:00
Florian Bruhin
0640eacb95 Catch ValueError when catching :set errors 2014-05-02 12:27:06 +02:00
Florian Bruhin
fcb10e2bff More escaping fixes 2014-05-02 12:25:30 +02:00
Florian Bruhin
3b015cd5df Cache ordered values in ValueList section 2014-05-02 11:46:58 +02:00
Florian Bruhin
be86ca03e2 Escape values in default config comments 2014-05-02 11:30:51 +02:00
Florian Bruhin
cb0d0d1af2 Don't escape values in configdata. 2014-05-02 11:28:36 +02:00
Florian Bruhin
554d5d2745 Fix command length (s/args/nargs) 2014-05-02 11:28:11 +02:00
Florian Bruhin
615a2e0bb5 Handle invalid hinting modes/targets 2014-05-02 11:25:24 +02:00
Florian Bruhin
ae0966a384 Fix encoding issues on windows.
locale.getpreferredencoding(False) returns cp1252 on Windows, which is
unable to parse our nice unicode arrows.

Therefore, we always need to specify the encoding when using open().

Also we exclude configdata.py from pep257 on Windows because it doesn't
detect the encoding correctly... Bug is submitted:
https://github.com/GreenSteam/pep257/issues/70
2014-05-02 11:15:38 +02:00
Florian Bruhin
be467d5e50 Refactor command argument splitting.
This uses split=True/False as cmdutils.register argument again (because
we would never want to set maxsplit ourselves, only not splitting the
*last* argument makes any sense.

Also this uses shlex for splitting again, like earlier.
2014-05-02 10:28:41 +02:00