Florian Bruhin
|
1761d98c1b
|
Fix lint
|
2014-10-10 07:50:50 +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
|
d32a0c30c6
|
command: Remove unneeded has_count check.
|
2014-10-08 07:40:53 +02:00 |
|
Florian Bruhin
|
1a00d6168c
|
command: Check for handlers with count and no default.
|
2014-10-08 07:40:39 +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
|
d8a917575d
|
Add a cmdutils.check_exclusive function.
|
2014-10-07 20:39:02 +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
|
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
|
106ad9f4ed
|
userscripts: Don't store a list of runners.
|
2014-09-29 20:16:54 +02:00 |
|
Florian Bruhin
|
865389bb34
|
Make CommandRunner a QObject.
|
2014-09-29 20:16:38 +02:00 |
|
Florian Bruhin
|
45ac2e4835
|
Fix getting URL for startup commands.
|
2014-09-29 19:56:37 +02:00 |
|
Florian Bruhin
|
714c9d8b01
|
Add win_id parameter to commands which need it.
|
2014-09-29 19:14:11 +02:00 |
|
Florian Bruhin
|
36f7ff6154
|
Fix some objreg.get calls.
|
2014-09-28 23:23:02 +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
|
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
|
36fd2e5c7f
|
Improve __repr__ methods.
|
2014-09-26 15:48:24 +02:00 |
|
Florian Bruhin
|
e527db1560
|
Add scope argument to cmdutils.register/commands.
|
2014-09-25 07:41:51 +02:00 |
|
Florian Bruhin
|
05ff908c4f
|
Update attributes in docstrings.
|
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
|
3f02451828
|
Move object registry to its own file.
|
2014-09-24 07:06:45 +02:00 |
|
Florian Bruhin
|
2b60cdb64c
|
Object names cleanup
|
2014-09-23 23:05:55 +02:00 |
|
Florian Bruhin
|
297e37fdf2
|
Remove legacy instance= parameter support.
|
2014-09-23 22:08:05 +02:00 |
|
Florian Bruhin
|
a76c4c8ba5
|
Use object registry for tabbedbrowser.
|
2014-09-23 22:01:46 +02:00 |
|
Florian Bruhin
|
5f45d3de60
|
Use object registry for modeman.
|
2014-09-23 20:02:48 +02:00 |
|
Florian Bruhin
|
ab95234dad
|
Add object registry support to command handler.
|
2014-09-23 19:53:48 +02:00 |
|
Florian Bruhin
|
f4876c7f4f
|
Split docutils from utils
|
2014-09-23 04:22:51 +02:00 |
|
Florian Bruhin
|
9954a08ea2
|
Fix commands with ignore_args=True (e.g. :restart)
|
2014-09-22 22:46:03 +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
|
22e6a26ec3
|
Fix function calls with changed attribute names.
|
2014-09-15 06:20:33 +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
|
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
|
80ef0782d5
|
Improve some docstrings.
|
2014-09-13 00:22:27 +02:00 |
|