Florian Bruhin
7aa01802d9
Whoops, s/ignore/disable/
2014-12-05 21:08:15 +01:00
Florian Bruhin
c80f83671f
pylint: ignore pypeg2 import error
2014-12-05 21:03:23 +01:00
Florian Bruhin
98a384c167
Properly ignore distutils-bug in qtutils.
2014-12-05 12:56:32 +01:00
Florian Bruhin
653fbe81d0
pylint: Ignore distutils ImportError.
...
See https://bitbucket.org/logilab/pylint/issue/73/
2014-12-05 12:46:57 +01:00
Florian Bruhin
64e43c6e14
Ignore IPC in exception handler. Closes #262 .
2014-11-30 22:30:26 +01:00
Florian Bruhin
e3dfaa6a4b
Send cwd over IPC. Fixes #254 .
2014-11-30 19:22:35 +01:00
Florian Bruhin
9327c2a9ae
Remove trailing spaces in simple_split with keep=False.
...
Fixes #279 .
2014-11-30 18:59:51 +01:00
Florian Bruhin
6d419b8346
Avoid starting downloads before we know the filename.
...
Closes #278 .
2014-11-30 18:47:40 +01:00
Mathias Fussenegger
aeb6ceb942
correct search engine regex to match multiple search terms
2014-11-27 22:59:43 +01:00
Florian Bruhin
9bd8d3f2e5
Merge branch 'search-engine-syntax' of https://github.com/mfussenegger/qutebrowser into mfussenegger-search-engine-syntax
2014-11-27 22:19:07 +01:00
Mathias Fussenegger
68398035ef
change search engine syntax to match that of dwb
...
as pointed out in
https://github.com/The-Compiler/qutebrowser/issues/14 this
commit changes the syntax so that DuckDuckGo bang syntax
works.
2014-11-27 21:57:51 +01:00
Florian Bruhin
68b9aaace4
Add utils.raises. Closes #274 .
2014-11-27 20:44:48 +01:00
Florian Bruhin
e8966ec7bb
Remove some shlex vdebug.
2014-11-26 21:02:20 +01:00
Florian Bruhin
010efcee93
Don't treat floats as IPs either.
2014-11-25 21:19:24 +01:00
Florian Bruhin
683a306c51
Fix @log_signals with deleted objects.
2014-11-25 19:51:53 +01:00
Florian Bruhin
6973050ccc
Don't treat any valid int as IP
2014-11-24 21:49:48 +01:00
Florian Bruhin
7be32dd70c
Don't handle hexadecimal numbers as IP addresses.
...
Fixes #269 .
2014-11-24 21:47:22 +01:00
Florian Bruhin
0134646c67
Basic host blocker implementation.
...
Squashed commit of the following:
commit 8d38e9c2f13778fe21cc2c1d61c5d26907b469ef
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 21:04:30 2014 +0100
Fix default adblock lists.
commit a734b87e753daec28fa0c6643af8de088041179a
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 21:04:14 2014 +0100
Fix error output on adblock errors.
commit 15bc10f605ebb86c12523bb81b55d1440fcacdbf
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:38:47 2014 +0100
Update adblock docks
commit 475d530ee50f52295c2171208c6a0278750cf4b4
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:38:39 2014 +0100
Remove adblock ram calculation
commit 0e52cc3ec93912fd3fa3ecf6de833aef0c540a60
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 07:03:11 2014 +0100
Adjust docs for hosts-file.
commit 941df242d38300d7e42a26f2e67cfd668c6f8590
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 06:55:40 2014 +0100
Add logging for host blocking.
commit 4ca1561ccf32affb8439113f4f1c222d7dee1e14
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 24 00:11:59 2014 +0100
Don't do adblock updates automatically after changing config.
commit 26d4e86ca393d4a1a5fd8fac7729ce9c2e7cd240
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:58:32 2014 +0100
adblock: Don't delete blocked hosts between files.
commit c7af08c68adf3c135d5a2fc746eb6d3c715b0711
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:58:22 2014 +0100
adblock: Add comments for rewinding.
commit 9af87313088cd79ab8c022bcee9308511d6328f0
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:56:39 2014 +0100
adblock: Rewind files properly.
commit 7f3dadc04ba68c92d6789ecf5822f7b2dfc367a0
Author: Florian Bruhin <git@the-compiler.org>
Date: Thu Nov 20 19:40:18 2014 +0100
Add untested file support.
commit 334c01867d510b599d94c9397097a1d789c0c64c
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:33:25 2014 +0100
adblock: Handle download errors correctly
commit 3a9af4cd4a903386dc323640f1d52e03383b3aa7
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:23:04 2014 +0100
adblock: Add error handling for invalid input.
commit 5934c3c027ff9205adb512aab396ca913b31e50d
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 22:22:47 2014 +0100
adblock: Handle done_count correctly.
commit 3ba5e83fda9b7d764bfcf1e4b1aa479daae39791
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 21:18:10 2014 +0100
Read adblock files when they finished downloading.
commit 86a5ecf194445e2ebe0cf22b59e24223387880c5
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 20:51:25 2014 +0100
Add hosts-file.net to host-block-lists.
commit 121f0bff953497449c32e45e671b71d954beed4c
Author: Florian Bruhin <git@the-compiler.org>
Date: Wed Nov 19 20:51:13 2014 +0100
Add zip-file support to adblock.py.
commit f1c0e67cb9d890a44a1d1f545ace997f0a453f91
Author: Florian Bruhin <git@the-compiler.org>
Date: Mon Nov 17 07:41:14 2014 +0100
print line counts for debugging
commit 75dbb8964fd44862abc378ef26fb47f8cda6061e
Author: Florian Bruhin <git@the-compiler.org>
Date: Fri Nov 14 19:22:20 2014 +0100
Use statusbar messages for adblock
commit 74d9142d831496e02c5baae72c2723e320af1778
Author: Florian Bruhin <git@the-compiler.org>
Date: Fri Nov 14 08:34:46 2014 +0100
Add basic adblock functionality.
2014-11-24 21:05:09 +01:00
Florian Bruhin
655115858c
Handle OSError when using subprocess.
2014-11-23 18:07:05 +01:00
Florian Bruhin
7b1ea3ff40
Typo: s/similiar/similar/g
2014-11-19 22:46:52 +01:00
Florian Bruhin
2fe72d8087
Simplify utils.log.
...
The overcomplicated parsing with re didn't really give us much benefits, and
lead to exceptions and segfaults[1] (?) already, so it's best to just get rid
of it entirely.
[1] http://paste.the-compiler.org/view/26768694
2014-11-19 22:43:49 +01:00
Florian Bruhin
336bbc370e
Ignore 'content-type missing' Qt warning.
2014-11-19 22:38:56 +01:00
Florian Bruhin
75d1f072c2
Add a raise_cmdexc_if_invalid to urlutils.
2014-11-18 19:49:31 +01:00
Florian Bruhin
b0c8ca9e1a
Escape regex correctly.
2014-11-18 07:34:50 +01:00
Florian Bruhin
3622f35865
Hide 'load glyph failed' Qt warning.
2014-11-16 16:25:37 +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
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
5fa1556588
Fix getting last main window when it was closed.
...
Fixes #242 .
2014-11-10 23:21:31 +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
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
d71147898b
Move completion logic from statusbar widget to completer.
...
Fixes #247 .
2014-11-10 07:49:22 +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
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
4e9b9baeab
Split commands with split=False correctly.
...
Fixes #231 .
2014-11-09 20:46:21 +01:00
Florian Bruhin
f689c89316
Merge branch 'shlex'
...
Fixes #122 .
Fixes #232 .
2014-11-09 18:25:51 +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
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
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
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
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
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
6e4759b65a
Better paste metainfo
2014-10-31 07:57:50 +01: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
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
fd6e56d7af
Convert all function annotations to dicts.
2014-10-20 17:20:39 +02:00
Florian Bruhin
0a5cee6ea2
Simplify text marking in completion.
...
Also improves performance, see #190 .
2014-10-20 07:43:07 +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
Claude
572a9857ec
fixes
2014-10-18 22:00:28 +02:00
Claude
afe45f9970
puschschsch
2014-10-18 16:42:06 +02:00
Claude
36328a01a4
updating code
...
according to https://github.com/The-Compiler/qutebrowser/pull/189#issuecomment-59220531
2014-10-17 21:39:28 +02:00
Claude
9613cc0eab
Merge remote-tracking branch 'florian/master' into quickmark-completion
2014-10-17 20:46:00 +02:00
Florian Bruhin
dc8f156c21
Make srcmodel public in CompletionFilterModel.
2014-10-15 20:43:20 +02:00
Florian Bruhin
b54151f206
Use last focused window for download errors and other stuff.
...
When the event happens, it's possible we don't have any window focused yet, so
we display it in the window which was last focused.
Fixes #191 .
2014-10-15 20:42:40 +02:00
Florian Bruhin
e8fa8fadce
Fix completion tabbing.
...
I accidentally broke this in fb3682f5fa
because
the variable gets reset before the slot is executed now.
See #189 .
2014-10-15 13:00:56 +02:00
Claude
621388e5e0
init quickmark completion in init_static
2014-10-15 12:08:37 +02:00
Claude
777e93bd3f
quickmarks completion
...
It works, but:
* terrible performance (5s for ~1600 marks)
* split and join operations in the loop - i want direct access to name +
url in the marks dict! how?
2014-10-15 11:54:10 +02:00
Florian Bruhin
fb3682f5fa
Load completion with a singleShot QTimer.
...
It still slows stuff down while typing, but at least it's a lot more responsive
for the initial load.
See #189 .
2014-10-15 07:15:59 +02:00
Florian Bruhin
a8808aa3d4
Keep a reference to completion source model.
...
For some reason calling sourceModel() takes quite some time, which accounts for
about 1-2s of delay when showing the completion.
This matters for #189 for example.
2014-10-15 07:06:39 +02:00
Florian Bruhin
cf6d303ad1
Improve crash log handling because of single-instance.
2014-10-14 20:47:06 +02:00
Florian Bruhin
ef8873040a
Add docstrings to signal debugging.
2014-10-14 07:59:07 +02:00
Florian Bruhin
bcf8040041
Whitespace fixes.
2014-10-14 07:58:50 +02:00
Florian Bruhin
0e9177eb4f
Rename ipc param to process_args to via_ipc.
...
This prevents shadowing of the module.
2014-10-14 07:57:42 +02:00
Florian Bruhin
ca85dde71f
Merge branch 'ipc'
2014-10-13 23:19:04 +02:00
Florian Bruhin
191b1dd240
Open new window for IPC args.
2014-10-13 23:14:24 +02:00
Florian Bruhin
19be96b4a8
Better invalid data logging
2014-10-13 22:51:11 +02:00
Florian Bruhin
f9c2eb836f
Adjust docstring
2014-10-13 22:48:37 +02:00
Florian Bruhin
6b07fd969a
Add timeout to IPC server.
2014-10-13 22:47:32 +02:00
Florian Bruhin
4617aee317
Log all socket errors
2014-10-13 22:38:40 +02:00
Florian Bruhin
103ba3b8b0
Don't log PeerDisconnectedError.
2014-10-13 22:36:05 +02:00
Florian Bruhin
bdb7cc96b4
Handle multiple connections properly #2 .
2014-10-13 22:35:10 +02:00
Florian Bruhin
de41dee0b5
Add ipc logging
2014-10-13 21:38:28 +02:00
Florian Bruhin
879cdf8904
Ignore invalid UTF-8 data.
2014-10-13 21:17:49 +02:00
Florian Bruhin
7d492d7556
Ignore invalid json data.
2014-10-13 21:16:38 +02:00
Florian Bruhin
c42fc53980
Handle multiple connections properly.
2014-10-13 21:12:15 +02:00
Florian Bruhin
9e2e684124
Whitespace
2014-10-13 20:38:40 +02:00
Florian Bruhin
795a6937ac
Add missing @pyqtSlot decorators.
2014-10-13 20:37:09 +02:00
Florian Bruhin
5bc4f85dc5
Fix QLocalServer error checking.
2014-10-13 20:37:00 +02:00
Florian Bruhin
a849901693
Shut down IPC cleanly on exit.
2014-10-13 20:36:23 +02:00
Florian Bruhin
6dc0bfa2d2
Convert IPCServer to a class and handle connections async.
2014-10-13 20:11:13 +02:00
Florian Bruhin
a3ee504c59
Add docstrings.
2014-10-13 07:59:03 +02:00
Florian Bruhin
93dd3d8d9d
Fix check for QLocalSocket.UnknownSocketError
2014-10-13 07:49:26 +02:00
Florian Bruhin
8195f1875e
Ignore QLocalSocket.ServerNotFoundError while connecting.
2014-10-13 07:49:01 +02:00
Florian Bruhin
2f0bbab635
Better IPC exceptions
2014-10-13 07:47:05 +02:00
Florian Bruhin
d861645d37
Remove wrong 'self' argument.
2014-10-13 07:43:22 +02:00
Florian Bruhin
5fc3332b6b
Check errors correctly when connecting to socket.
2014-10-13 07:43:12 +02:00
Florian Bruhin
94b9bd42af
Add missing "return True" when connected.
2014-10-13 07:42:15 +02:00
Florian Bruhin
f759106a14
Error handling when writing to running instance.
2014-10-13 07:34:15 +02:00
Florian Bruhin
451a8be748
Small cleanup.
2014-10-13 07:31:56 +02:00
Florian Bruhin
4958da9c70
Error checking on connection.
2014-10-13 07:31:48 +02:00
Florian Bruhin
869fd4f752
Add an IPCError exception.
2014-10-13 07:11:45 +02:00
Florian Bruhin
ae61ca8af9
whitespace
2014-10-13 07:09:25 +02:00
Florian Bruhin
e351217740
Wait until socket bytes are written.
2014-10-13 07:09:16 +02:00
Florian Bruhin
fdb24ff597
Move IPC to its own file.
2014-10-13 07:06:57 +02:00
Florian Bruhin
27fe73e1b8
Add debug function to log signals.
2014-10-11 11:40:15 +02:00
Florian Bruhin
1761d98c1b
Fix lint
2014-10-10 07:50:50 +02:00
Florian Bruhin
b42d701b0c
debug-console: Only create when needed
2014-10-10 07:45:44 +02:00
Florian Bruhin
0e771db7f1
Use annotation instead of special argument names.
...
Explicit is better than implicit.
Fixes #161 .
2014-10-09 06:33:24 +02:00
Florian Bruhin
33043f0f6c
Fix lint
2014-10-08 22:20:38 +02:00
Florian Bruhin
71308b45ac
Add utils.qualname. Closes #169 .
2014-10-08 21:11:04 +02:00
Florian Bruhin
7956f2b8e2
Clean up :later timers correctly on exceptions.
2014-10-08 07:52:49 +02:00
Florian Bruhin
50f7067d6c
Add a :repeat command.
2014-10-08 07:46:21 +02:00
Florian Bruhin
704df6f619
Fix docstring.
2014-10-08 07:16:27 +02:00
Florian Bruhin
04b5c0e781
Add CACHEDIR.TAG to cache. Closes #19 .
2014-10-08 07:16:00 +02:00
Florian Bruhin
ef0c72a99e
Create standard dirs correctly. Fixes #20 .
2014-10-08 07:11:25 +02:00
Florian Bruhin
b49b227c0d
Add an init method for standarddir.
...
This is another preparation for #19 and #20 .
2014-10-08 06:43:00 +02:00
Florian Bruhin
0e7a60abf6
Move utils.get_standard_dir to its own file.
...
This is a preparation for #19 and #20 because there are too many functions
related to standarddir in utils.
2014-10-08 06:20:31 +02:00
Florian Bruhin
6349a6a213
Remove Emit:/Raise: from docstrings.
...
They got out-of-sync fast and provided no real benefit.
2014-10-07 23:08:37 +02:00
Florian Bruhin
f3ad1b71e6
Clean up objreg log text. This confused me in #159 .
2014-10-07 22:21:51 +02:00
Florian Bruhin
15a2be877a
Pass win_id correctly with invalid_url_error.
2014-10-06 22:22:59 +02:00
Florian Bruhin
105c25bc5f
Merge branch 'multiwin'
...
Conflicts:
qutebrowser/app.py
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/keyinput/modeman.py
qutebrowser/network/networkmanager.py
qutebrowser/widgets/mainwindow.py
qutebrowser/widgets/statusbar/command.py
qutebrowser/widgets/statusbar/prompt.py
qutebrowser/widgets/statusbar/prompter.py
qutebrowser/widgets/tabbedbrowser.py
2014-10-06 22:03:58 +02:00
Florian Bruhin
9281fa3992
Fix lint/bugs
2014-10-06 19:53:50 +02:00
Florian Bruhin
6324751af6
More window support.
2014-10-06 17:58:40 +02:00
Florian Bruhin
7e209dc285
Print tab registries in :debug-all-objects.
2014-10-06 07:41:34 +02:00
Florian Bruhin
d8cd599096
Fix wrong 'is' check.
2014-10-06 07:41:26 +02:00
Florian Bruhin
85ead4273b
Register tab registry under window registry with ID.
2014-10-06 07:41:05 +02:00
Florian Bruhin
d3121034df
Revert "Store window registries in objreg."
...
This reverts commit dfd3b3d9c4
.
It turns out this makes it very hard to remove the window from the window
registry at the right time.
2014-10-05 23:09:35 +02:00
Florian Bruhin
d260b26105
Fix objreg._get_window_registry when non-mainwindow window is focused.
2014-10-05 22:41:44 +02:00
Florian Bruhin
dfd3b3d9c4
Store window registries in objreg.
2014-10-05 22:17:29 +02:00
Florian Bruhin
b6393a1841
Get rid of meta registry
2014-10-05 21:50:14 +02:00
Florian Bruhin
4dcaa1fdec
Be more forgiving when validating URLs. Fixes #141 .
2014-10-03 16:58:30 +02:00
Florian Bruhin
a8304d03ea
Clean up get_standard_dir
2014-10-02 22:24:08 +02:00
Florian Bruhin
e74fa71a0a
Seprate data/config dirs on Windows.
...
See #21 .
2014-10-02 22:12:45 +02:00
Florian Bruhin
3a66937205
Clean up argument handling in get_standard_dir
2014-10-02 22:12:24 +02:00
Florian Bruhin
b20536d472
Move handling of --confdir into get_standard_dir
2014-10-02 21:54:42 +02:00
Florian Bruhin
d674b90240
Clean up FIXMEs and add github URLs
2014-10-01 22:23:27 +02:00
Florian Bruhin
6aeecb3803
Fix lints/bugs
2014-09-29 20:36:53 +02:00
Florian Bruhin
42a1d7028d
Move :later back from commands to utilcmds.
2014-09-29 19:56:25 +02:00
Florian Bruhin
e6fe358d73
Clean up correctly when a window is closed.
2014-09-29 10:43:06 +02:00
Florian Bruhin
26604a683b
Fix lint
2014-09-29 07:47:32 +02:00
Florian Bruhin
75ba75a0d7
Check arguments against None in objreg.
2014-09-29 07:17:11 +02:00
Florian Bruhin
9533312e0d
Fix event filter when a non-Mainwindow dialog has an event.
2014-09-28 22:53:24 +02:00
Florian Bruhin
dc7b32e460
Fix lint
2014-09-28 22:23:37 +02:00
Florian Bruhin
fb6cb62f93
First attempt at multi-window support.
2014-09-28 22:13:14 +02:00
Florian Bruhin
64a119afb2
Don't use signals for on_config_changed.
2014-09-28 11:27:52 +02:00
Florian Bruhin
65d1d21d2e
Always use a list for namedtuple.
2014-09-28 00:43:08 +02:00
Florian Bruhin
0fadf6b091
Use a list as items-argument for usertypes.enum
2014-09-28 00:42:53 +02:00
Florian Bruhin
c9d5928dce
Fix lint
2014-09-27 23:21:13 +02:00
Florian Bruhin
4410536f69
Refactor :undo and save/restore history.
2014-09-27 22:56:50 +02:00
Florian Bruhin
4e42ff1304
Move tab_id_gen and add tab_id to webview repr.
2014-09-26 16:44:41 +02:00
Florian Bruhin
36fd2e5c7f
Improve __repr__ methods.
2014-09-26 15:48:24 +02:00
Florian Bruhin
1960cfe114
Really fix keyevent_to_string.
2014-09-26 07:31:59 +02:00
Florian Bruhin
99da7b697b
Fix lint on OS X
2014-09-26 07:12:08 +02:00
Florian Bruhin
cdb33a04cc
Fix Ctrl-key on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
2ebb0063be
Really fix version info on OS X
2014-09-25 22:46:25 +02:00
Florian Bruhin
66d36442d7
Fix version info on OS X
2014-09-25 21:33:03 +02:00
Florian Bruhin
55e2ccabf5
Fix lint
2014-09-25 07:58:08 +02:00
Florian Bruhin
143fdc5b9f
Register tab registry in meta registry.
2014-09-25 07:50:07 +02:00
Florian Bruhin
1e7861660e
Add 'meta' scope to objreg.
2014-09-25 07:49:46 +02:00
Florian Bruhin
e8ce45c440
Add a tab-scope object registry.
2014-09-25 07:49:45 +02:00
Florian Bruhin
4067b584ec
Add a registry argument to objreg.register.
2014-09-25 07:43:14 +02:00
Florian Bruhin
c77057e88e
Add a scope parameter to objreg functions.
2014-09-25 00:30:52 +02:00
Florian Bruhin
027e7e054e
Remove obsolete EnumBase usertype.
2014-09-24 22:25:11 +02:00
Florian Bruhin
05ff908c4f
Update attributes in docstrings.
2014-09-24 22:25:11 +02:00
Florian Bruhin
f2b46dc2e9
Remove srcmodel attribute from completionfilter.
2014-09-24 22:25:11 +02:00
Florian Bruhin
62e55499eb
Privatize all attributes which aren't needed from the outside.
2014-09-24 22:25:11 +02:00
Florian Bruhin
6a5c9ba138
Use object registry for CompletionView.
2014-09-24 22:25:10 +02:00
Florian Bruhin
387622623d
Detach meta object registry from application.
2014-09-24 07:27:32 +02:00
Florian Bruhin
b0a9ecf094
Detach object registry from application.
2014-09-24 07:13:53 +02:00
Florian Bruhin
3c2e584c2a
Make pylint shut up with _UNSET object.
2014-09-24 07:07:31 +02:00
Florian Bruhin
3f02451828
Move object registry to its own file.
2014-09-24 07:06:45 +02:00
Florian Bruhin
6090bf418d
Add utils.delete_object()
2014-09-24 06:41:39 +02:00
Florian Bruhin
d32d6c9b28
Allow a default value for utils.get_object.
2014-09-24 06:41:22 +02:00
Florian Bruhin
a2d3ca6565
Make it possible to update an object in the object registry.
2014-09-24 06:25:08 +02:00
Florian Bruhin
908a69af18
Better __repr__s
2014-09-23 23:31:17 +02:00
Florian Bruhin
9aa65a2341
Fix lint and bugs
2014-09-23 23:17:36 +02:00
Florian Bruhin
2b60cdb64c
Object names cleanup
2014-09-23 23:05:55 +02:00
Florian Bruhin
fe5d9939b9
Move debug console from app to utilcmd
2014-09-23 22:31:26 +02:00
Florian Bruhin
953e50721c
Use object registry for config.
2014-09-23 22:28:28 +02:00
Florian Bruhin
184babbd84
Remove destroyed QObjects from ObjectRegistry.
2014-09-23 19:53:48 +02:00
Florian Bruhin
58be65f4f0
Use object registry for messagebridge.
2014-09-23 19:53:48 +02:00
Florian Bruhin
10eb849ae7
Fix lint
2014-09-23 19:53:47 +02:00
Florian Bruhin
aa681f5ad2
Merge get_all_widgets into get_all_objects.
2014-09-23 19:53:47 +02:00
Florian Bruhin
30209f531e
Improve get_all_objects output.
2014-09-23 19:53:47 +02:00
Florian Bruhin
dce5289b69
Rename global registry from obj to registry.
2014-09-23 19:53:47 +02:00
Florian Bruhin
dc7ad3e2de
Use a normal UserDict for ObjectRegistry.
2014-09-23 19:53:46 +02:00
Florian Bruhin
ca2be960df
Use object registry for cache/cookiejar.
2014-09-23 19:53:20 +02:00
Florian Bruhin
3b3675d1af
utils: Add helper functions get_object/register_object.
2014-09-23 19:53:15 +02:00
Florian Bruhin
981604fc8b
Add initial object registry.
2014-09-23 19:51:52 +02:00
Florian Bruhin
f4876c7f4f
Split docutils from utils
2014-09-23 04:22:51 +02:00
Florian Bruhin
bc01f3a780
Fix spelling of temporarily
2014-09-22 20:44:07 +02:00
Florian Bruhin
812a0fdd41
Merge branch 'newcmd'
...
Conflicts:
.flake8
pkg/PKGBUILD.qutebrowser-git
qutebrowser/browser/commands.py
qutebrowser/browser/hints.py
qutebrowser/config/configdata.py
qutebrowser/network/qutescheme.py
qutebrowser/test/config/test_configtypes.py
qutebrowser/utils/utils.py
2014-09-22 19:09:48 +02:00
Florian Bruhin
def417b8a5
Check if docs are up to date if running from git repo.
2014-09-21 22:15:56 +02:00
Florian Bruhin
906a049382
Fix lint
2014-09-18 17:25:48 +02:00
Florian Bruhin
7f76c3ba13
safe_shlex_split: cleanup and don't do double-lexing
2014-09-18 16:58:38 +02:00
Florian Bruhin
1c1534b5f6
safe_shlex_split: Use real lexer object and handle ' correctly.
2014-09-18 16:57:07 +02:00
Florian Bruhin
7de0b85dda
safe_shlex_split: Adjust docstring
2014-09-18 16:15:57 +02:00
Florian Bruhin
6a86924e60
safe_shlex_split: Give up after 3 tries.
2014-09-18 16:15:37 +02:00
Florian Bruhin
2e35685fe1
safe_shlex_split: Don't split None.
2014-09-18 16:15:13 +02:00
Florian Bruhin
644dfe53e2
Add a decorator to prevent Exceptions (to prevent segfaults).
2014-09-16 22:06:48 +02:00
Florian Bruhin
5eef6d422d
Better exception formatting and handling.
2014-09-16 08:20:19 +02:00
Florian Bruhin
4bab430c32
utils.version: Use programmatic imports.
2014-09-16 07:16:15 +02:00
Florian Bruhin
d039a29fc9
Move more logic into earlyinit from qutebrowser.py.
2014-09-16 06:39:39 +02:00
Florian Bruhin
3234d9a821
earlyinit refactor: Use programmatic imports.
2014-09-16 06:21:40 +02:00
Florian Bruhin
18e56eca90
earlyinit: Fix text for debian.
2014-09-16 05:24:20 +02:00
Florian Bruhin
d1ddc8c6cb
Fix lint
2014-09-15 22:01:13 +02:00
Florian Bruhin
14cc77ff42
Add pygments as dependency.
2014-09-15 17:59:33 +02:00
Florian Bruhin
1fd8fb57a6
Use *args for commands where possible.
2014-09-14 23:10:51 +02:00
Florian Bruhin
fea3524443
Remove 'or None' in docs.
2014-09-13 00:37:07 +02:00
Florian Bruhin
80ef0782d5
Improve some docstrings.
2014-09-13 00:22:27 +02:00
Florian Bruhin
1220f0c5fd
Move webelem from utils to browser.
2014-09-08 10:30:05 +02:00
Florian Bruhin
25da8dd169
webelem: Fix debug output
2014-09-08 10:19:52 +02:00
Florian Bruhin
5e6150e665
Add a :help command.
2014-09-08 07:36:18 +02:00
Florian Bruhin
05f3809d01
Fix lint
2014-09-08 07:36:17 +02:00
Florian Bruhin
b453ae563e
Clean up docstring parsing and move it into qutebrowser for commands.
2014-09-08 07:36:17 +02:00
Florian Bruhin
57d51ad9bb
Lots of fixes for new command system.
...
Squashed commit:
- Fix getting current URL
- Get rid of *args for hints.
- Make enums work.
- Fix moving commands to utilcmds.
- Fix enums in argparse
- Fix arg splitting for hints.
- Fix default enum args.
- Fix argument splitting for hints if None is given.
- Fix set_cmd_text with flags and fix {url}.
- Fix unittests
- Fix tuple types for arguments.
- Fix scroll-page.
- Fix lint
- Fix open_target.
- Others
2014-09-08 07:36:17 +02:00
Florian Bruhin
d836e26107
Nicer debug printing of functions.
2014-09-08 07:36:17 +02:00
Florian Bruhin
a811f8cb07
Start initial newcmd stuff.
2014-09-08 07:36:17 +02:00
Florian Bruhin
84a034d7e9
More liberal quoting.
2014-09-08 07:35:18 +02:00
Florian Bruhin
522b408fde
utils.completer: Quote strings for completion.
2014-09-08 07:12:55 +02:00
Florian Bruhin
6b8c597d18
Remove unused import.
2014-09-04 20:35:26 +02:00
Florian Bruhin
b856bf3a47
Improve webelement API
2014-09-04 20:30:59 +02:00
Florian Bruhin
becc4490bc
Add FIXME to qurl
2014-09-03 22:56:54 +02:00
Florian Bruhin
5ba3440369
Add details to colorama workaround.
2014-09-03 22:20:17 +02:00
Florian Bruhin
e3bb3af7ba
Make it possible to use pdb for debugging.
2014-09-03 13:31:01 +02:00
Florian Bruhin
71796e9528
Fix statusbar text when entering insert mode via hints.
...
Before, hints cleaned the statusbar text delayed, clearing the "==== INSERT
MODE ====" in the statusbar.
Now we only reset the text if it wasn't changed.
2014-09-03 11:51:24 +02:00
Florian Bruhin
ccfc0b3c19
Get rid of most @property's.
...
They were problematic because they're executing hidden code, and also PyQt
hides exceptions happening inside them.
2014-09-02 23:37:47 +02:00
Florian Bruhin
4caec2becb
Document and mark workarounds.
2014-09-02 20:44:58 +02:00
Florian Bruhin
e112038a8b
Handle IPv6 literals correctly.
2014-09-02 08:20:33 +02:00
Florian Bruhin
330af95778
Strip spaces in url string correctly.
2014-09-02 07:49:06 +02:00
Florian Bruhin
96c1d53222
urlutils: Strip URL before testing.
2014-09-02 07:11:01 +02:00
Florian Bruhin
71a2ade637
Fix URL detection corner cases.
2014-09-02 06:53:52 +02:00
Florian Bruhin
d059c468af
Merge branch 'ninja'
2014-08-29 07:33:43 +02:00
Florian Bruhin
f44896cc44
Add a VDEBUG logging level.
2014-08-29 07:33:37 +02:00
Florian Bruhin
1dce50309b
First steps at using jinja2 for qute:log.
2014-08-29 06:59:44 +02:00
Florian Bruhin
c9ea83ca7b
Fix lint
2014-08-29 06:14:52 +02:00
Florian Bruhin
a6ae129595
Use jinja for error page.
2014-08-28 20:14:40 +02:00
Florian Bruhin
2fdf241da2
Add dependency on jinja2.
2014-08-28 20:14:40 +02:00
Florian Bruhin
6d2acc244c
Use an LRU cache for stylesheets
2014-08-28 20:14:40 +02:00
Florian Bruhin
cb2dd62dc5
Fix lint
2014-08-27 22:23:37 +02:00
Florian Bruhin
68ef9b97a3
Add an LRU cache to the config.
2014-08-27 20:16:04 +02:00
Florian Bruhin
ce4a5affa4
Rename commands.utils to commands.cmdutils.
2014-08-26 20:48:39 +02:00
Florian Bruhin
c72bfff306
Rename commands.exceptions to commands.cmdexc.
2014-08-26 20:38:10 +02:00
Florian Bruhin
5adf48ed3d
Rename utils.url to utils.urlutils.
2014-08-26 20:33:41 +02:00
Florian Bruhin
8bd64382bd
Rename utils.qt to utils.qtutils.
2014-08-26 20:25:11 +02:00
Florian Bruhin
d9a8cbe7ad
Rename utils.misc to utils.utils
2014-08-26 20:20:17 +02:00
Florian Bruhin
b4298c2922
Remove 'as logger' imports.
2014-08-26 20:15:41 +02:00
Florian Bruhin
e04b31eb90
Remove qt_ prefix from qtutils functions.
2014-08-26 19:23:06 +02:00
Florian Bruhin
d625cde28c
Clean up imports
2014-08-26 19:10:14 +02:00
Florian Bruhin
45608ee9f8
Add bugs URL to colorama issue
2014-08-26 06:35:58 +02:00
Florian Bruhin
1a24e953c6
Better way to deinit colorama
2014-08-25 22:26:52 +02:00
Florian Bruhin
012482ce10
Fix colorama log issues on Windows when frozen.
...
With the new version of colorlog, colorama.init() gets called when opening
colorlog, which then lead to sys.stderr not being None anymore (but a wrapped
"None"), which lead to an exception when we checked isatty().
We now just unwrap these again.
2014-08-25 10:52:38 +02:00
Florian Bruhin
d2b7530c0a
Merge branch 'master' of ssh://lupin/qutebrowser
2014-08-25 07:01:33 +02:00
Florian Bruhin
bbcf593f38
Fix logfilter
2014-08-25 06:58:41 +02:00
Florian Bruhin
e576ff608f
utils.webelem: Don't treat select boxes as editable.
2014-08-22 07:54:48 +02:00
Florian Bruhin
c826db7e03
Make editor config configurable
2014-08-20 20:57:10 +02:00
Florian Bruhin
17dd4732ae
Add explicit encoding to open() calls.
2014-08-20 20:33:14 +02:00
Florian Bruhin
05727b2584
Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
2014-08-20 15:08:07 +02:00
Florian Bruhin
cd117ccabb
Treat ACE editor as editable.
2014-08-20 15:07:33 +02:00
Florian Bruhin
d18a025d68
earlyinit: Beautify messages
2014-08-15 18:58:46 +02:00
Florian Bruhin
f1f5c344bc
Whitespace fix
2014-08-14 15:11:48 +02:00
Florian Bruhin
36572bc0cb
Add pypeg2 to version info
2014-08-14 15:08:33 +02:00
Florian Bruhin
9585b3c925
Add some logging for content-disposition
2014-08-14 14:59:13 +02:00
Florian Bruhin
c7bfe784e4
Adjust the rest of the code for rfc6266 -> pypeg2
2014-08-14 13:37:27 +02:00
Florian Bruhin
ef1035f2ba
utils.rfc6266: Fix lint
2014-08-14 13:29:07 +02:00
Florian Bruhin
9cf80cf498
utils.rfc6266: Cleanup
2014-08-14 13:29:07 +02:00
Florian Bruhin
62b00e5ff6
utils.rfc6266: Test for invalid ISO-8859-1 and duplicate params.
2014-08-14 13:29:06 +02:00
Florian Bruhin
03ea837211
utils.rfc6266: Do parsing of ext-values earlier.
2014-08-14 13:29:06 +02:00
Florian Bruhin
33b1cc6916
utils.rfc6266: Remove percent_decode function.
2014-08-14 13:29:06 +02:00
Florian Bruhin
9ae5a90f5e
utils.rfc6266: Remove unneeded IKeyword.
2014-08-14 13:29:06 +02:00
Florian Bruhin
acb5159791
utils.rfc6266: Nicer ext-param handling
2014-08-14 13:29:06 +02:00
Florian Bruhin
e159990363
utils.rfc6266: Initial implementation.
2014-08-14 13:29:06 +02:00
Florian Bruhin
2e760a92cf
debug-console: Handle I/O and exceptions.
2014-08-13 06:09:18 +02:00
Florian Bruhin
48e81b34d0
http: remove change_content_type.
...
We're probably not going to need it.
2014-08-12 21:16:33 +02:00
Florian Bruhin
cdd7457aee
utils.http: Return [None, None] in parse_content_type.
2014-08-12 21:12:13 +02:00
Florian Bruhin
bad9031914
Change image/jpg Content-Type to image/jpeg.
...
This makes QtWebKit display images with a (nonstandard) image/jpg content-type,
e.g. http://m.c.lnkd.licdn.com/mpr/mpr/p/2/005/07b/08a/018245a.jpg (instead of
downloading them).
2014-08-12 09:57:40 +02:00
Florian Bruhin
91a701552d
utils.http: Fix joining.
2014-08-12 09:03:59 +02:00
Florian Bruhin
be811e5c62
utils.http: Add some Content-Type stuff
2014-08-12 07:30:53 +02:00
Florian Bruhin
069371501a
Hide QNetworkReplyImplPrivate warning message
2014-08-12 07:00:05 +02:00
Florian Bruhin
be2604cacd
Add a new qutebrowser.utils.http module
2014-08-12 07:00:04 +02:00
Florian Bruhin
c51a891e89
utils.url: Add support for opening relative files.
2014-08-08 13:14:48 +02:00
Florian Bruhin
45657141a0
utils.url: Always treat URLs with explicit scheme as URL.
2014-08-08 13:05:46 +02:00
Florian Bruhin
837b2b386e
utils.debug: Add a broken qflags_key.
2014-08-07 14:41:39 +02:00
Florian Bruhin
318805a088
utils.debug: Format numbers as hex for qenum_key.
2014-08-07 14:41:07 +02:00
Florian Bruhin
2546c871c8
utils.debug: Improve qenum_key.
2014-08-07 07:35:05 +02:00
Florian Bruhin
5a88028738
Rename qutebrowser.commands.managers module to .runners.
2014-08-06 15:58:08 +02:00
Florian Bruhin
aebce80b2b
Rename {Command,Search}Manager to ...Runner
2014-08-06 15:38:25 +02:00
Florian Bruhin
b2a227fb50
log: Clean up log formatting.
2014-08-05 23:35:20 +02:00
Florian Bruhin
7818366f0a
Fix lint
2014-08-05 23:23:15 +02:00
Florian Bruhin
60d4dafbbb
Replace cgi.escape by html.escape.
...
cgi.escape is deprecated:
https://docs.python.org/3.4/library/cgi.html#cgi.escape
2014-08-05 23:20:26 +02:00
Florian Bruhin
f1a8f91d51
log: Adjust colors so warnings/errors are more visible.
2014-08-05 23:07:53 +02:00
Florian Bruhin
1dd56e512a
log: Fix RAMHandler so the data can change while iterating.
2014-08-05 23:07:25 +02:00
Florian Bruhin
d7f9ccf7e5
log: Fix lepl filter with debug logging.
2014-08-05 22:31:30 +02:00
Florian Bruhin
ee1b136807
Clean up pylint/noqa comments.
2014-08-04 03:47:09 +02:00
Florian Bruhin
9e73cba333
Improve command documentation.
2014-08-03 00:33:39 +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
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
b6cd0dd600
Use sys.__stderr__ for faulthandler.
2014-08-01 00:55:18 +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
70d8163353
Write to stderr in utils.debug.trace_lines.
2014-07-31 21:20:51 +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
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
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
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
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
f7304298ab
Separate docstrings into command/documentation parts.
2014-07-16 20:09:41 +02:00
Florian Bruhin
2d3575f6d1
Remove tab close buttons
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
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
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
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
72b854049b
Improvments for hints/page-prev/page-next
2014-07-09 21:14:15 +02:00
Florian Bruhin
f173583605
Documentation update for Qt 5.3.1
2014-07-04 14:37:31 +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
ea84ce7acf
Force keybindings to lower case
2014-07-03 07:46:14 +02:00
Florian Bruhin
9b24ca39ea
Move normalize_keystr to utils.misc
2014-07-03 07:34:09 +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
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
400f619903
Handle user variables in path correctly
2014-06-28 01:15:31 +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
46d621629f
Fix download/question crashes
2014-06-26 13:36:00 +02:00
Florian Bruhin
92ff957543
Clean up message API
2014-06-26 07:58:00 +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
9238135867
Fix crashes after completion refactoring
2014-06-25 16:48:28 +02:00
Florian Bruhin
b72306ffe6
Reduce logging for completions
2014-06-25 15:52:40 +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
c8cc92e8c2
Add basic HTML log
2014-06-25 10:00:27 +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
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
b6ddda8f17
Show git timestamp in version
2014-06-23 16:19:43 +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
cf17af147e
Fix and clean up insertmode checks
2014-06-23 14:26:34 +02:00
Florian Bruhin
e4b10af41a
Move filename checking to utils.misc
2014-06-23 12:15:10 +02:00
Florian Bruhin
8a8ca0c34f
Split utils.misc into utils.{qt,misc}
2014-06-23 07:45:04 +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
bf9e829d4d
Don't use .warn on loggers, use .warning instead.
2014-06-22 23:30:44 +02:00
Florian Bruhin
a64775a0f9
Improve logging messages
2014-06-21 22:40:31 +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
113221c731
Log some exceptions
2014-06-20 23:26:19 +02:00
Florian Bruhin
9a33efdb3f
Fix is_special_url (use QUrl).
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
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
5f86357ae8
Fix rfc6266 check
2014-06-20 06:45:52 +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
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
3435aef78c
Add commandline argument for debug log buffer size
2014-06-19 12:11:46 +02:00
Florian Bruhin
1ed70bfef7
Fix utils.log so it works with sys.stderr == None
2014-06-19 10:19:00 +02:00