Florian Bruhin
46396cce1e
Fix maxsplit-splitting with empty args (""/'').
...
Fixes #453 .
2015-01-06 10:00:28 +01:00
Florian Bruhin
efe96462c9
Pass more useful information to userscripts.
...
Closes #379 .
2015-01-04 20:16:15 +01:00
Florian Bruhin
b8a04f5309
Don't raise CommandError in TabbedBrowser.current_url.
...
TabbedBrowser.current_url used to process the qtutils.QtValueError exception
and raise a cmdexc.CommandError based on it. While this was useful for some
callers, it made handling it in others weird, and it doesn't really belong
there - so now the caller handles this.
2015-01-04 20:13:25 +01:00
Florian Bruhin
04c8a17b2e
Merge branch 'userscript-runner'
2015-01-04 15:21:31 +01:00
Florian Bruhin
f64269c57a
Add qutebrowser- to FIFO name.
2015-01-04 14:53:00 +01:00
Florian Bruhin
b1b1cecdb7
Add some more logging
2015-01-04 14:51:50 +01:00
Florian Bruhin
ecc7f09f86
Use QSocketNotifier for userscripts.
2015-01-04 14:36:59 +01:00
Florian Bruhin
450d1ab70d
Update copyright years
2015-01-03 15:51:31 +01:00
Johannes Altmanninger
8b69f9b62c
Registered 'search' as command.
...
Fixes #421 .
2014-12-29 22:45:26 +01:00
Florian Bruhin
b703028411
Clean up and temporarily disable alias completion.
...
Fixes #358 .
2014-12-28 22:08:38 +01:00
Florian Bruhin
03ac8874ff
Rewrite keymode handling to use only one mode.
...
Fixes #417 .
Fixes #418 .
See 4ab5d2df28
.
2014-12-28 00:01:27 +01:00
Florian Bruhin
512d7c4448
Simplify config exception tree and handling.
...
Also make sure we catch all config-related errors in all related places.
Fixes #324 .
2014-12-17 11:17:18 +01:00
Florian Bruhin
efd632ea73
Preserve arguments when re-splitting with aliases.
...
Fixes #339 .
2014-12-15 23:06:42 +01:00
Florian Bruhin
06ec1a3885
Big file tree reorganisation.
...
Closes #255 .
Should make a lot more sense now ;)
2014-12-13 17:28:50 +01:00
Florian Bruhin
451df7bbf4
Handle flags with args correctly with split=False.
2014-12-11 21:17:43 +01:00
Florian Bruhin
b7ea8e7979
Support a maxsplit argument for commands.
2014-12-11 20:32:52 +01:00
Florian Bruhin
81bc5dae94
Remove quotes with split=False commands.
...
Fixes #313 .
2014-12-11 20:04:29 +01:00
Florian Bruhin
ec07e4f8be
Handle OSError exceptions where appropriate.
...
Fixes #25 .
2014-12-10 18:00:49 +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
4e9b9baeab
Split commands with split=False correctly.
...
Fixes #231 .
2014-11-09 20:46:21 +01:00
Florian Bruhin
5fe04a6aec
Make completion work more or less
2014-11-06 08:26:01 +01:00
Florian Bruhin
d730471fd7
Start using keep=True for commandline.
2014-11-06 07:15:02 +01:00
Florian Bruhin
3fa8efc34b
Initial shlex fork
2014-11-03 21:27:07 +01:00
Florian Bruhin
0f550f696c
Clean up Command.
2014-10-26 22:08:13 +01: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
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
bda3c9b1d0
Refactor Command._inspect_function.
2014-10-14 07:59:42 +02:00
Florian Bruhin
46b15a1f11
userscripts: Remove invalid encoding param to os.open.
...
Fixes #182 .
This was a regression introduced in 17dd4732ae
.
2014-10-13 15:09:23 +02:00
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