Commit Graph

2701 Commits

Author SHA1 Message Date
Florian Bruhin
829b8df535 downloads: Return the created DownloadItem. 2014-11-18 07:47:28 +01:00
Florian Bruhin
6301c740d1 downloads: Add a generic NetworkManager. 2014-11-18 07:47:28 +01:00
Florian Bruhin
c8a1c979e8 downloads: Whitespace change. 2014-11-18 07:47:28 +01:00
Florian Bruhin
d31e8edffc downloads: Document _win_id. 2014-11-18 07:47:28 +01:00
Florian Bruhin
da49424836 downloads: Make it possible to set fileobj instead of name. 2014-11-18 07:47:28 +01:00
Florian Bruhin
5ad516a438 DownloadItem: Make fileobj public. 2014-11-18 07:47:28 +01:00
Florian Bruhin
f250cd41ad DownloadItem: Add an autoclose attribute. 2014-11-18 07:47:28 +01:00
Florian Bruhin
ab0dba3344 DownloadItem: add successful attribute. 2014-11-18 07:47:28 +01:00
Florian Bruhin
b0c8ca9e1a Escape regex correctly. 2014-11-18 07:34:50 +01:00
Florian Bruhin
cf1728de43 configtypes: Add more tests for List/UrlList. 2014-11-18 07:14:06 +01:00
Florian Bruhin
c29ae9e1d3 configtypes: Add new UrlList type. 2014-11-18 07:14:06 +01:00
Florian Bruhin
142e90cdd3 Move special network replies to their own file. 2014-11-18 07:14:06 +01:00
Florian Bruhin
c4da44e90c configtypes: Handle none_ok differently for List. 2014-11-18 07:14:06 +01:00
Florian Bruhin
2514e66028 Don't call processEvents in NetworkManager.
This caused the segfaults and memory corruption issues mentioned in #256.
2014-11-18 07:14:06 +01:00
Florian Bruhin
3622f35865 Hide 'load glyph failed' Qt warning. 2014-11-16 16:25:37 +01:00
Florian Bruhin
ecbebba9e9 hints: Ignore TypeError when disconnecting contentsSizeChanged.
Fixes #263.
2014-11-16 00:05:20 +01:00
Florian Bruhin
15ce2746eb Remove unneeded 'except RuntimeError' 2014-11-14 19:33:26 +01:00
Florian Bruhin
794df11b01 Add spacing to DownloadView. 2014-11-14 19:33:18 +01:00
Florian Bruhin
3f6a40aac9 Update cache size if storage->cache-size is changed. 2014-11-14 19:02:22 +01:00
Florian Bruhin
9bf776aee1 Fix TypeError when closing tabs with older PyQt-versions.
Fixes #257.

It seems disconnecting a signal from a destroyed object gives us a
"TypeError: pyqtSignal must be bound to a QObject, not 'WebView'" instead of a
RuntimeError with older PyQt-versions (5.2.1).
2014-11-14 18:55:48 +01:00
Florian Bruhin
4925a3f36e Ignore new statusbar questions when we're shutting down.
Fixes #95.
2014-11-12 23:28:03 +01:00
Florian Bruhin
ac7b17be3a Describe _busy attribute for prompter. 2014-11-12 23:26:43 +01:00
Florian Bruhin
a10801ef21 Don't get prompter widget when restoring None context.
This basically did hide #95.
2014-11-12 20:53:47 +01:00
Florian Bruhin
812b100205 Invert background-tabs setting when Shift is pressed.
Closes #175.
2014-11-12 20:37:44 +01:00
Florian Bruhin
4c8ecbb40d Fix disconnecting from objreg for deleted objects. 2014-11-12 20:22:49 +01:00
Florian Bruhin
2419071b0f Disconnect destroyed signal of objects deleted in objreg.
Fixes #205.
2014-11-12 20:19:26 +01:00
Florian Bruhin
69803f5f87 Don't log exception during exception handling twice. 2014-11-12 20:18:36 +01:00
Florian Bruhin
e23360bb88 Don't open a new window if only commands are sent via IPC.
Fixes #237.
2014-11-11 22:42:45 +01:00
Florian Bruhin
d30ec95f72 Open new window if no existing window is found on IPC. 2014-11-11 22:29:44 +01:00
Florian Bruhin
ddb52b1e17 Leave insert mode when tab is changed. 2014-11-11 21:42:53 +01:00
Florian Bruhin
b70c3754e8 downloads: Check if reply is open when doing delayed write.
This fixes a "QIODevice::read: device not open" warning when closing the window
while a download is active.
2014-11-11 21:40:25 +01:00
Florian Bruhin
b502280c06 Make download-manager a per-window object.
Fixes #228.
2014-11-11 21:36:47 +01:00
Florian Bruhin
5fa1556588 Fix getting last main window when it was closed.
Fixes #242.
2014-11-10 23:21:31 +01:00
Florian Bruhin
2278d30187 Work around pylint bug in tests.
See:
https://bitbucket.org/logilab/astroid/issue/36/attributeerror-starred-object-has-no
2014-11-10 23:02:38 +01:00
Florian Bruhin
6310081ef5 Clean up simple_split. 2014-11-10 23:02:34 +01:00
Florian Bruhin
c70f6f534b Get rid of dotted_getattr. 2014-11-10 18:59:13 +01:00
Florian Bruhin
eaca891616 Log uncaught exceptions to debug log 2014-11-10 18:34:31 +01:00
Florian Bruhin
57212c8438 Fix "Exception ignored in:" warnings.
Fixes #245.
2014-11-10 18:00:44 +01:00
Florian Bruhin
398da22b54 Fix splitting with split=False and maxsplit=0.
Since re.split behaves differently from str.split with maxsplit=0,
4e9b9baeab broke things like ":open foo bar".
2014-11-10 10:38:19 +01:00
Florian Bruhin
96c72724ce Handle whitespace correctly when splitting with flags.
Fixes #248.
2014-11-10 08:14:45 +01:00
Florian Bruhin
1b46c96192 Fix completion when deleting command 2014-11-10 07:59:39 +01:00
Florian Bruhin
d71147898b Move completion logic from statusbar widget to completer.
Fixes #247.
2014-11-10 07:49:22 +01:00
Florian Bruhin
5e7ef5201c Move statusbar-cmd registering. 2014-11-10 07:05:57 +01:00
Florian Bruhin
10059ce70f Remove unneeded _get_object call. 2014-11-10 07:05:24 +01:00
Florian Bruhin
404e425a9e Clean up faulthandler import 2014-11-09 22:59:14 +01:00
Florian Bruhin
5f9c56bcdd Fix exception when logging Qt warning without function. 2014-11-09 22:57:39 +01:00
Florian Bruhin
bc009ae624 Fix lint in split.py 2014-11-09 22:15:44 +01:00
Florian Bruhin
326ce91eb7 Append hint elements inside body.
Fixes #226.
2014-11-09 22:02:08 +01:00
Florian Bruhin
40be804ee6 Don't handle "foo: bar" as URL.
Fixes #227.
2014-11-09 21:54:15 +01:00
Florian Bruhin
bf752f6ea4 Update pyPEG2 install instructions.
Fixes #243.
2014-11-09 21:48:33 +01:00
Florian Bruhin
b7c1f32922 Strip pattern when completing. 2014-11-09 20:47:39 +01:00
Florian Bruhin
f8dc2a9fb4 Add additional split test with flags. 2014-11-09 20:47:27 +01:00
Florian Bruhin
4e9b9baeab Split commands with split=False correctly.
Fixes #231.
2014-11-09 20:46:21 +01:00
Florian Bruhin
a86279df5e Set cursor part correctly if the cursor is at the end. 2014-11-09 20:45:47 +01:00
Florian Bruhin
f689c89316 Merge branch 'shlex'
Fixes #122.
Fixes #232.
2014-11-09 18:25:51 +01:00
Florian Bruhin
61943b5a77 Fix completion 2014-11-09 18:12:36 +01:00
Florian Bruhin
31ee458e56 Hide _GTK_LOAD_ICONTHEMES Qt error 2014-11-08 20:03:33 +01:00
Florian Bruhin
2b8d6c5dd7 Use a for loop 2014-11-06 09:02:21 +01:00
Florian Bruhin
5fe04a6aec Make completion work more or less 2014-11-06 08:26:01 +01:00
Florian Bruhin
ac61422059 Fix splitting of whitespace at EOL 2014-11-06 08:25:46 +01:00
Florian Bruhin
d730471fd7 Start using keep=True for commandline. 2014-11-06 07:15:02 +01:00
Florian Bruhin
76b72d3438 Try splitting with whitespace at next token. 2014-11-06 07:14:36 +01:00
Florian Bruhin
ca1ca7db36 shlexer cleanup 2014-11-06 07:13:58 +01:00
Florian Bruhin
77949c8d33 Get rid of continue 2014-11-06 06:46:21 +01:00
Florian Bruhin
cb24ec58cc Use yield 2014-11-06 06:44:23 +01:00
Florian Bruhin
9591e86054 cleanup state=None 2014-11-05 23:48:57 +01:00
Florian Bruhin
e6f4ac9b99 cleanup 2014-11-05 23:47:48 +01:00
Florian Bruhin
807e0944b6 Fix broken test case 2014-11-05 21:49:15 +01:00
Florian Bruhin
40a1c4a2d9 Remove newline test 2014-11-05 21:44:52 +01:00
Florian Bruhin
1d9b60d733 Fix some tests 2014-11-05 21:42:27 +01:00
Florian Bruhin
714ba530d3 Add tests for keep=True 2014-11-05 07:58:28 +01:00
Florian Bruhin
e68c28ebfc Adjust test case formatting 2014-11-05 07:46:28 +01:00
Florian Bruhin
ac355b1c7c Use vdebug level. 2014-11-05 07:42:21 +01:00
Florian Bruhin
22da17bbca Add a keep-mode to shlexer. 2014-11-05 07:41:17 +01:00
Florian Bruhin
9ed466b536 Add python shlex tests 2014-11-04 21:08:26 +01:00
Florian Bruhin
c308de95d1 Clean up tests 2014-11-04 21:06:50 +01:00
Florian Bruhin
82e95d82d1 cleanup 2014-11-04 21:06:43 +01:00
Florian Bruhin
84916448a9 Use iterator to read chars 2014-11-04 20:41:29 +01:00
Florian Bruhin
409eba76ca Handle safe parsing directly in ShellLexer 2014-11-04 20:24:42 +01:00
Florian Bruhin
95f7940996 Get rid of _get_lexer. 2014-11-04 20:13:38 +01:00
Florian Bruhin
430ef5c935 Whitespace cleanup 2014-11-04 20:13:31 +01:00
Florian Bruhin
89a2057cac Simplify eof handling 2014-11-04 20:09:45 +01:00
Florian Bruhin
cfafc2e235 Get rid of get_token 2014-11-04 20:08:14 +01:00
Florian Bruhin
9a5df13639 Use logging for debug 2014-11-04 20:06:58 +01:00
Florian Bruhin
cb76a100c2 Assume whitespace_split=True, get rid of wordchars/pushback 2014-11-03 21:48:10 +01:00
Florian Bruhin
9180a8b0bb shlex: Some lint cleanup 2014-11-03 21:43:34 +01:00
Florian Bruhin
b8d9f3b041 shlex: Remove lineno/commenters 2014-11-03 21:37:36 +01:00
Florian Bruhin
861705f655 shlex: Assume posix=True 2014-11-03 21:35:47 +01:00
Florian Bruhin
cab18c248c shlex: Remove unneeded stuff 2014-11-03 21:30:39 +01:00
Florian Bruhin
3fa8efc34b Initial shlex fork 2014-11-03 21:27:07 +01:00
Florian Bruhin
45bdf166f8 Add vdebug logging for getting completion part.
See #232.
2014-11-03 19:35:09 +01:00
Florian Bruhin
ef96cd9d02 Add workaround for hang on messages during QNAM init.
See http://www.riverbankcomputing.com/pipermail/pyqt/2014-November/035045.html
2014-11-02 22:03:13 +01:00
Florian Bruhin
f705194c00 Fix an exception related to handling IPC connections.
See http://paste.the-compiler.org/view/77f58b69
2014-11-02 21:53:12 +01:00
Florian Bruhin
8e713abadf Add some logging for #232 2014-11-02 20:30:00 +01:00
Florian Bruhin
c3a83bc412 Add hover description to docstring (#238) 2014-11-02 20:08:40 +01:00
Florian Bruhin
7b670b134d Small whitespace fix for #238 2014-11-02 20:04:41 +01:00
Florian Bruhin
07357a81e9 Merge branch 'master' of https://github.com/rikn00/qutebrowser into rikn00-master 2014-11-02 20:00:33 +01:00
rikn00
33b6e17772 Remove unneeded change to ClickTarget 2014-11-02 20:49:18 +02:00
Florian Bruhin
e911a2bd6d Fix lint 2014-11-02 19:16:13 +01:00
Florian Bruhin
6ede565ffd Merge branch 'new-crash-dialog'
Closes #56.
2014-11-02 19:09:57 +01:00
Florian Bruhin
2cb383a7d0 Handle URLs opened via QDesktopServices. 2014-11-02 19:09:36 +01:00
Florian Bruhin
adfd1e5b9d Add text about stacktrace.asciidoc in crash dialog.
Closes #140.
2014-11-02 19:06:43 +01:00
rikn00
4d101eea59 Improve hovering a hint 2014-11-02 16:37:34 +02:00
rikn00
84759a4928 Add support to hover mouse over a hint 2014-11-01 01:54:19 +02:00
Florian Bruhin
6e4759b65a Better paste metainfo 2014-10-31 07:57:50 +01:00
Florian Bruhin
1c32e72e37 Hide crash dialog before reporting.
This makes it feel snappier.
2014-10-31 07:36:35 +01:00
Florian Bruhin
589187ee6b Set some properties. 2014-10-31 07:13:32 +01:00
Florian Bruhin
a2809e76bb Handle --debug specially 2014-10-31 07:06:28 +01:00
Florian Bruhin
da0f433260 Start new crash dialog 2014-10-31 06:53:55 +01:00
Florian Bruhin
904d84db7e Set split=False for :quickmark-load.
See #231.

The completion still hides on the space and reappears on the first letter of
the second word, but it's a start.
2014-10-29 22:55:03 +01:00
Florian Bruhin
8e0e33e89a Use QWebElement API to set hint elem style.
See #225.
2014-10-29 22:50:29 +01:00
Florian Bruhin
2937fb9232 Use QWebElement API to set hint elem attributes.
Fixes #225.
2014-10-29 21:01:32 +01:00
Florian Bruhin
a1ba05ff08 Add some logging for #152 2014-10-29 07:09:43 +01:00
Florian Bruhin
0c8b9fe095 Add vdebug logging for hints.
This hopefully helps with #225.
2014-10-28 19:00:41 +01:00
Florian Bruhin
eb5527f897 Add some logging about keyboard focus.
This should help with debugging #218 if it occurs again.
2014-10-28 07:44:42 +01:00
Florian Bruhin
8d22d558e2 Fix tab closing with tabs->last-close = blank.
Fixes #220.
2014-10-27 20:46:35 +01:00
Florian Bruhin
afaba7bfdc Update tab fg colors when config changed.
Fixes #217.
2014-10-27 07:47:28 +01:00
rikn00
1245e08d7a More options to colorize tab foreground 2014-10-26 23:56:00 +02:00
Florian Bruhin
e639cdb117 Remove unused imports. 2014-10-26 22:08:59 +01:00
Florian Bruhin
2269d9a64b Split getting of completion model into multiple functions. 2014-10-26 22:08:36 +01:00
Florian Bruhin
0f550f696c Clean up Command. 2014-10-26 22:08:13 +01:00
Florian Bruhin
ae2284f4aa Fix multiple file QWebPage extension.
We accidentally broke that in 4c78b611eb.
2014-10-26 22:07:15 +01:00
Florian Bruhin
2d9425a0b7 Fix uppercase hint formatting. 2014-10-26 17:05:56 +01:00
Florian Bruhin
ef9e31c2d9 Merge branch 'master' of https://github.com/peterlvilim/qutebrowser into uppercase-hint 2014-10-26 19:50:54 +01:00
Peter Vilim
ee875ba895 hints: Show uppercase hint chars #73 2014-10-26 03:04:48 -05:00
Florian Bruhin
4c78b611eb Clean up QWebPage::extension handling. 2014-10-25 23:59:09 +02:00
Florian Bruhin
c79c1f950a Open unknown protocols with external viewer.
Closes #210.
2014-10-25 23:51:22 +02:00
Florian Bruhin
c2daadf0bd Fix exception when element has no web frame. 2014-10-22 20:18:58 +02:00
Florian Bruhin
6f3fde4450 Don't trigger completion update twice.
Fixes #206.
2014-10-21 16:45:04 +02:00
Florian Bruhin
7eba55459b Fix completion with flags.
Fixes #203.
2014-10-20 20:39:25 +02:00
Florian Bruhin
0b37ad4348 Don't pass unknown dict keys to argparse in function annotations. 2014-10-20 20:27:33 +02:00
Florian Bruhin
c7f6a747a8 Check flag length in function annotations. 2014-10-20 20:27:19 +02:00
Florian Bruhin
fd6e56d7af Convert all function annotations to dicts. 2014-10-20 17:20:39 +02:00
Florian Bruhin
a6f1bf29ae Revert "Remove unneeded invalidateFilter call."
This reverts commit b5781f0ed3.

For some reason this did break the "completion->shrink" setting.

Closes #204.
Makes #190 a bit worse again though.

Conflicts:
	qutebrowser/models/completionfilter.py
2014-10-20 12:01:48 +02:00
Florian Bruhin
0a5cee6ea2 Simplify text marking in completion.
Also improves performance, see #190.
2014-10-20 07:43:07 +02:00
Florian Bruhin
1917911dd8 Don't set marks data if the pattern is empty.
See #190.
2014-10-20 07:13:29 +02:00
Florian Bruhin
b5781f0ed3 Remove unneeded invalidateFilter call.
See #190.
2014-10-20 06:38:21 +02:00
Florian Bruhin
013a9ff216 Don't update completion twice when setting cmd text.
See #190.
2014-10-20 06:17:20 +02:00
Florian Bruhin
9f242cb907 Fix lint 2014-10-20 00:33:52 +02:00
Florian Bruhin
596c33fe1c Merge branch 'quickmark-completion' 2014-10-20 00:29:46 +02:00
Florian Bruhin
eb7d12445b Fix indent 2014-10-20 00:29:19 +02:00
Florian Bruhin
1b91cd61cd Fix long line 2014-10-20 00:28:14 +02:00
Florian Bruhin
4ae4d0c74b Simplify getting of quickmarks 2014-10-20 00:27:45 +02:00
Florian Bruhin
1238807745 Whitespace fixes. 2014-10-20 00:25:12 +02:00
Florian Bruhin
8e9836785f Remove unused import. 2014-10-20 00:25:10 +02:00
Claude
14d8d01d92 raising value error 2014-10-19 23:04:32 +02:00
Florian Bruhin
8dffceeb2a completion: Match case-insensitively. 2014-10-19 23:04:26 +02:00
Claude
ed51367bdd selfish parameters 2014-10-19 23:01:06 +02:00
Claude
ecbe5c071d match urls with open, names with quickmark-load 2014-10-19 22:25:21 +02:00
Florian Bruhin
e3e1382ccd Add missing faulthandler import. 2014-10-19 18:19:36 +02:00