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 |
|
Florian Bruhin
|
381b06e967
|
Fix lint
|
2014-09-08 07:44:32 +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
|
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
|
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 |
|