Florian Bruhin
8f2ad91086
Fix lint
2014-09-16 07:34:07 +02:00
Florian Bruhin
c47fa840a0
network.qutescheme: Workaround for segfault on exceptions.
2014-09-16 07:16:30 +02:00
Florian Bruhin
4bab430c32
utils.version: Use programmatic imports.
2014-09-16 07:16:15 +02:00
Florian Bruhin
d039a29fc9
Move more logic into earlyinit from qutebrowser.py.
2014-09-16 06:39:39 +02:00
Florian Bruhin
3234d9a821
earlyinit refactor: Use programmatic imports.
2014-09-16 06:21:40 +02:00
Florian Bruhin
18e56eca90
earlyinit: Fix text for debian.
2014-09-16 05:24:20 +02:00
Florian Bruhin
55216e207f
configdata: Move Consolas further back in font list.
...
Consolas generally is quite a nice font, but in this font size it shows a lot
of bleeding and Courier New is much more readable, so we only use it as
fallback now.
2014-09-15 22:24:32 +02:00
Florian Bruhin
d1ddc8c6cb
Fix lint
2014-09-15 22:01:13 +02:00
Florian Bruhin
f5ecba0d07
Move exit logging to app.py for Python2 compatibility.
2014-09-15 21:55:38 +02:00
Florian Bruhin
19afa69d87
view_source: Add line numbers.
2014-09-15 18:19:56 +02:00
Florian Bruhin
175d25b3c4
Merge branch 'master' of ssh://cmpl.cc:2323/qutebrowser
2014-09-15 18:01:20 +02:00
Florian Bruhin
3bd55b2140
Add keybinding for view_source.
2014-09-15 18:00:06 +02:00
Florian Bruhin
715aec991e
Add view_source command.
2014-09-15 17:59:54 +02:00
Florian Bruhin
14cc77ff42
Add pygments as dependency.
2014-09-15 17:59:33 +02:00
Florian Bruhin
34b0cf429c
command: Cleanup
2014-09-15 08:16:19 +02:00
Florian Bruhin
8a51aa759e
command: Clean up ParamType.
2014-09-15 07:46:50 +02:00
Florian Bruhin
e1d93fa3fa
Move inspect stuff from cmdutils to command.
2014-09-15 07:42:21 +02:00
Florian Bruhin
81aa08593b
hints: Ignore invalid href's instead of crashing.
2014-09-15 06:54:05 +02:00
Florian Bruhin
ad2435fa0b
hints: Small cleanup
2014-09-15 06:53:05 +02:00
Florian Bruhin
00193df99e
hints: Fix URL resolving crash with new WebElement API.
2014-09-15 06:52:34 +02:00
Florian Bruhin
f7c0f8f11e
Remove :get and use :set with ...? instead.
2014-09-15 06:24:15 +02:00
Florian Bruhin
22e6a26ec3
Fix function calls with changed attribute names.
2014-09-15 06:20:33 +02:00
Florian Bruhin
fa9d9b62b1
config: Use sectname/optname argument names.
2014-09-15 00:03:59 +02:00
Florian Bruhin
f2e68685d2
Fix doc generation with overridden argument names.
2014-09-15 00:03:39 +02:00
Florian Bruhin
4d3b3616a6
Fix lint
2014-09-14 23:56:19 +02:00
Florian Bruhin
063be350e4
cmdutils: Merge _param_to_argparse_args and _param_to_argparse_kw.
2014-09-14 23:34:55 +02:00
Florian Bruhin
66f0aa8d5f
cmdutils: Bind keyword-only arguments as flags.
2014-09-14 23:25:40 +02:00
Florian Bruhin
fe08052641
command: Don't handle varargs if they are None
2014-09-14 23:16:54 +02:00
Florian Bruhin
b9216bca15
Fix hint command arguments.
2014-09-14 23:16:35 +02:00
Florian Bruhin
1fd8fb57a6
Use *args for commands where possible.
2014-09-14 23:10:51 +02:00
Florian Bruhin
f1f05516b3
command: Fix handling of count when it's not given.
2014-09-14 23:06:52 +02:00
Florian Bruhin
b2058e2f0e
cmdutils: Default to nargs='+' for *args.
2014-09-14 22:56:02 +02:00
Florian Bruhin
d4f584684b
command: Iterate over function signature when calling instead over namespace.
2014-09-14 22:48:25 +02:00
Florian Bruhin
4b759c5513
cmdutils: Make sure functions don't have **kwargs.
2014-09-14 22:48:00 +02:00
Florian Bruhin
cd8d137dd6
cmdutils: Bail out if instance is given but function takes no self.
2014-09-14 22:47:18 +02:00
Florian Bruhin
319ea242da
cmdutils: raise TypeError instead of ValueError.
2014-09-14 22:46:48 +02:00
Florian Bruhin
ef31157f5e
cmdutils: Use inspect.getdoc
2014-09-14 22:09:01 +02:00
Florian Bruhin
3391896037
Disable workaround for PyQt 5.3.2
2014-09-14 21:12:03 +02:00
Florian Bruhin
74b45aea47
conftypes: Better handling of ShellCommand.
2014-09-13 00:42:16 +02:00
Florian Bruhin
fea3524443
Remove 'or None' in docs.
2014-09-13 00:37:07 +02:00
Florian Bruhin
38c341e3ea
Add count info in commands.
2014-09-13 00:33:54 +02:00
Florian Bruhin
80ef0782d5
Improve some docstrings.
2014-09-13 00:22:27 +02:00
Florian Bruhin
2336b5de43
Refactor qutehandlers so they are not classmethods.
2014-09-12 20:27:20 +02:00
Florian Bruhin
16caa9ba69
Handle qute://help more intuitively (load index.html)
2014-09-12 20:19:27 +02:00
Florian Bruhin
0c9d7723c8
Fix on_config_changed for tabbar (renamed to tabs)
2014-09-12 20:15:20 +02:00
Florian Bruhin
f2b10160cc
Handle IOError with qute://help.
2014-09-12 20:10:13 +02:00
Florian Bruhin
ab0e600977
Error if unknown sections are in the config.
2014-09-12 17:53:27 +02:00
Florian Bruhin
052fa8e277
Don't emit config changed signals during init.
...
When we're initializing anyways nobody got a config value yet, so emitting the
signals just will mean code gets executed twice.
This reduces the startup time by about 1-2 seconds.
2014-09-12 17:38:40 +02:00
Florian Bruhin
cd14cbbfb8
Handle changed config correctly for interpolated values.
2014-09-12 17:26:47 +02:00
Florian Bruhin
a796482c83
Support !-keysections, don't bind leave-mode in normal mode.
2014-09-12 07:33:52 +02:00
Florian Bruhin
e516589fe3
Fix double default keybindings.
2014-09-12 07:18:04 +02:00
Florian Bruhin
c0e8352c95
Allow unbinding keys.
2014-09-09 23:12:55 +02:00
Florian Bruhin
4fde56a942
Allow binding keys.
2014-09-09 23:05:28 +02:00
Florian Bruhin
277dab4069
keyconfparser: Add empty sections.
2014-09-09 22:38:14 +02:00
Florian Bruhin
95d8091205
Fix double bindings
2014-09-09 22:34:20 +02:00
Florian Bruhin
30e926abf6
Check duplicate keychains
2014-09-09 22:29:17 +02:00
Florian Bruhin
e3d16f3bbe
Full read-write support for key config.
2014-09-09 22:18:00 +02:00
Florian Bruhin
414ab88a0e
Fix lint
2014-09-09 18:32:18 +02:00
Florian Bruhin
91514ad6c0
Add missing keyconfparser file.
2014-09-09 13:42:25 +02:00
Florian Bruhin
6f03f08111
Make new key config work (readonly)
2014-09-09 07:43:27 +02:00
Florian Bruhin
64183b5a26
Start moving keybindings
2014-09-08 16:53:33 +02:00
Florian Bruhin
070d5ae300
Add more documentation.
2014-09-08 12:21:47 +02:00
Florian Bruhin
1220f0c5fd
Move webelem from utils to browser.
2014-09-08 10:30:05 +02:00
Florian Bruhin
6f22319158
webview: Fix insert mode check.
2014-09-08 10:23:18 +02:00
Florian Bruhin
25da8dd169
webelem: Fix debug output
2014-09-08 10:19:52 +02:00
Florian Bruhin
381b06e967
Fix lint
2014-09-08 07:44:32 +02:00
Florian Bruhin
5e6150e665
Add a :help command.
2014-09-08 07:36:18 +02:00
Florian Bruhin
0267dac2be
Add --help documentation
2014-09-08 07:36:18 +02:00
Florian Bruhin
fc70d700b2
cmdutils: Force metavar if choices are given.
2014-09-08 07:36:17 +02:00
Florian Bruhin
dcfb52847f
Nicer flag output in docs.
2014-09-08 07:36:17 +02:00
Florian Bruhin
4cf7e6e767
Add docstring for :quickmark-load.
2014-09-08 07:36:17 +02:00
Florian Bruhin
6674eedfae
cmdutils: Add default value type to multitype_conv tuple.
2014-09-08 07:36:17 +02:00
Florian Bruhin
13a2506c6a
argparser: Also catch TypeError for multitype_conv.
2014-09-08 07:36:17 +02:00
Florian Bruhin
47f42f9e5a
commands.argparser: Make type tuples a set().
2014-09-08 07:36:17 +02:00
Florian Bruhin
05f3809d01
Fix lint
2014-09-08 07:36:17 +02:00
Florian Bruhin
0a094c6e58
Refactor HintManager.start
2014-09-08 07:36:17 +02:00
Florian Bruhin
b453ae563e
Clean up docstring parsing and move it into qutebrowser for commands.
2014-09-08 07:36:17 +02:00
Florian Bruhin
b5f28b6ff2
commands.argparser: Make ArgumentParser take args, add name.
2014-09-08 07:36:17 +02:00
Florian Bruhin
a656c8cfb0
commands: Add initial --help argument support.
2014-09-08 07:36:17 +02:00
Florian Bruhin
32e24479b9
commands.cmdutils: Clean up decorator.
2014-09-08 07:36:17 +02:00
Florian Bruhin
03a0a1c599
commands: Handle ArgumentParser exit.
2014-09-08 07:36:17 +02:00
Florian Bruhin
57d51ad9bb
Lots of fixes for new command system.
...
Squashed commit:
- Fix getting current URL
- Get rid of *args for hints.
- Make enums work.
- Fix moving commands to utilcmds.
- Fix enums in argparse
- Fix arg splitting for hints.
- Fix default enum args.
- Fix argument splitting for hints if None is given.
- Fix set_cmd_text with flags and fix {url}.
- Fix unittests
- Fix tuple types for arguments.
- Fix scroll-page.
- Fix lint
- Fix open_target.
- Others
2014-09-08 07:36:17 +02:00
Florian Bruhin
d836e26107
Nicer debug printing of functions.
2014-09-08 07:36:17 +02:00
Florian Bruhin
a811f8cb07
Start initial newcmd stuff.
2014-09-08 07:36:17 +02:00
Florian Bruhin
84a034d7e9
More liberal quoting.
2014-09-08 07:35:18 +02:00
Florian Bruhin
522b408fde
utils.completer: Quote strings for completion.
2014-09-08 07:12:55 +02:00
Florian Bruhin
6b8c597d18
Remove unused import.
2014-09-04 20:35:26 +02:00
Florian Bruhin
b856bf3a47
Improve webelement API
2014-09-04 20:30:59 +02:00
Florian Bruhin
becc4490bc
Add FIXME to qurl
2014-09-03 22:56:54 +02:00
Florian Bruhin
b789d14513
Improve prev-page/next-page matching and logging.
2014-09-03 22:55:48 +02:00
Florian Bruhin
5ba3440369
Add details to colorama workaround.
2014-09-03 22:20:17 +02:00
Florian Bruhin
15b8c553c8
Fix rl-unix-line-discard by reimplementing QLineEdit::home.
2014-09-03 21:30:30 +02:00
Florian Bruhin
e3bb3af7ba
Make it possible to use pdb for debugging.
2014-09-03 13:31:01 +02:00
Florian Bruhin
71796e9528
Fix statusbar text when entering insert mode via hints.
...
Before, hints cleaned the statusbar text delayed, clearing the "==== INSERT
MODE ====" in the statusbar.
Now we only reset the text if it wasn't changed.
2014-09-03 11:51:24 +02:00
Florian Bruhin
3e904f4c52
Fix crash when using commands on startup which need a widget.
2014-09-03 11:32:56 +02:00
Florian Bruhin
ccfc0b3c19
Get rid of most @property's.
...
They were problematic because they're executing hidden code, and also PyQt
hides exceptions happening inside them.
2014-09-02 23:37:47 +02:00
Florian Bruhin
a2e457ccc3
Remove old Ubuntu workaround.
2014-09-02 20:45:25 +02:00
Florian Bruhin
4caec2becb
Document and mark workarounds.
2014-09-02 20:44:58 +02:00
Florian Bruhin
bcaba3f5ca
Rename tests to reflect renamed modules.
2014-09-02 08:27:53 +02:00
Florian Bruhin
83e9638d42
Add fancy URL to tests.
2014-09-02 08:21:53 +02:00
Florian Bruhin
e112038a8b
Handle IPv6 literals correctly.
2014-09-02 08:20:33 +02:00
Florian Bruhin
330af95778
Strip spaces in url string correctly.
2014-09-02 07:49:06 +02:00
Florian Bruhin
96c1d53222
urlutils: Strip URL before testing.
2014-09-02 07:11:01 +02:00
Florian Bruhin
892c02268a
Shut down NetworkManager before deleting WebPage.
...
Now that the QWebPage actually is a parent of the QNetworkAccessManager, first
setting the page to None and then deleting the QNetworkAccessManager will get
us a RuntimeError because the underlying C++ object is already gone.
2014-09-02 07:02:21 +02:00
Florian Bruhin
7813f8f0c2
Remove unused cookiejar NetworkManager, fix parenting.
...
Before, the QWebPage got passed to the QNetworkAccessManager as cookiejar,
causing no parent to be set. Now, the QWebPage actually owns the
QNetworkAccessManager.
2014-09-02 07:00:02 +02:00
Florian Bruhin
71a2ade637
Fix URL detection corner cases.
2014-09-02 06:53:52 +02:00
Florian Bruhin
2bf616ff78
Adjust QWebSettings paths.
2014-09-01 21:56:30 +02:00
Florian Bruhin
428d70c746
Add a network disk cache.
2014-09-01 19:42:21 +02:00
Florian Bruhin
6d97da7bcc
browser.downloads: Download with default name if path is given.
2014-09-01 17:51:49 +02:00
Florian Bruhin
0a646b110b
Store cookies in binary format.
...
We saved/opened cookies as UTF-8 which lead to an exception on saving with a
cookie with an ä in it.
ISO-8859-1 would be more appropriate, but we trust Qt to make the right choice
and don't re-encode anything now.
2014-09-01 16:22:01 +02:00
Florian Bruhin
e163478782
Handle Shift-Return keypresses correctly.
2014-08-30 14:38:34 +02:00
Florian Bruhin
c0a88bf3d0
qute:log: Scroll to bottom on load
2014-08-29 07:38:07 +02:00
Florian Bruhin
d8fa2e8ef0
Fix lint
2014-08-29 07:34:44 +02:00
Florian Bruhin
d059c468af
Merge branch 'ninja'
2014-08-29 07:33:43 +02:00
Florian Bruhin
f44896cc44
Add a VDEBUG logging level.
2014-08-29 07:33:37 +02:00
Florian Bruhin
2cc2e769c3
network.qutescheme: Make pylint shut up.
2014-08-29 07:07:21 +02:00
Florian Bruhin
1dce50309b
First steps at using jinja2 for qute:log.
2014-08-29 06:59:44 +02:00
Florian Bruhin
0f0929ac78
Use jinja for most qute:... pages.
2014-08-29 06:41:18 +02:00
Florian Bruhin
c9ea83ca7b
Fix lint
2014-08-29 06:14:52 +02:00
Florian Bruhin
bf515a4104
Adjust import
2014-08-28 22:11:30 +02:00
Florian Bruhin
d6b1b7be3a
Handle exceptions in QWebPage::extension differently.
2014-08-28 22:11:10 +02:00
Florian Bruhin
350f1c1405
Use inherited templates for error page.
2014-08-28 20:14:40 +02:00
Florian Bruhin
dd3489b936
Add spaces in templates.
2014-08-28 20:14:40 +02:00
Florian Bruhin
a6ae129595
Use jinja for error page.
2014-08-28 20:14:40 +02:00
Florian Bruhin
0b15790f3d
Use jinja for stylesheets.
2014-08-28 20:14:40 +02:00
Florian Bruhin
a4c87b4c54
Remove STYLESHEET class attribute from docstrings.
2014-08-28 20:14:40 +02:00
Florian Bruhin
0d42eaa152
Remove useless getraw() from ColorDict/FontDict.
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
5176dac391
Raise exceptions in QWebPage::extensions properly.
2014-08-28 20:14:24 +02:00
Florian Bruhin
cb2dd62dc5
Fix lint
2014-08-27 22:23:37 +02:00
Florian Bruhin
3a73f9f532
Improve performance with statusbar error property
2014-08-27 21:03:43 +02:00
Florian Bruhin
af10d1c857
Fix cache invalidation for on_setting_changed.
2014-08-27 20:22:38 +02:00
Florian Bruhin
68ef9b97a3
Add an LRU cache to the config.
2014-08-27 20:16:04 +02:00
Florian Bruhin
562388fe52
Rename config.conftypes to config.configtypes.
2014-08-26 21:41:41 +02:00
Florian Bruhin
ce4a5affa4
Rename commands.utils to commands.cmdutils.
2014-08-26 20:48:39 +02:00
Florian Bruhin
270b822908
Simplify imports in keyinput.modeman.
2014-08-26 20:38:50 +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
f452b02b24
Turn off repainting while moving tabs.
...
Before we had some flashing because we're removing the tab, inserting the new
one, and then focusing the new one.
2014-08-25 15:41:19 +02:00
Florian Bruhin
2b85093d90
Fix ss/sl/sk keybindings.
2014-08-25 15:41:06 +02:00
Florian Bruhin
743cc47229
Default to delta=1 for gl/gr.
2014-08-25 15:40:48 +02:00
Florian Bruhin
03cb9c353b
Fix clipboard selection in :paste on windows.
2014-08-25 15:28:07 +02:00