Commit Graph

1758 Commits

Author SHA1 Message Date
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