qutebrowser/tests
Florian Bruhin 6618c3a6e8 Don't use shlex for configtypes.ShellCommand
We accidentally did show the command as a list in to_str(). However, after
correcting that to use shlex.escape, we got ugly qutebrowser command lines
when tabbing to the default value, because of how shlex handles double-escaping:

>>> print(shlex.quote("gvim -f '{}'"))
'gvim -f '"'"'{}'"'"''

While in this case, outputting "gvim -f '{}'" would be much more appropriate, it
doesn't look like we can teach shlex.quote to do that.

Instead, we now only accept a list as input for ShellCommand, at the price that
the user needs to do
  :set editor.command '["gvim", "-f", "{}"]'
instead of
  :set editor.command 'gvim -f {}'

Fixes #2962.
2017-09-14 14:44:24 +02:00
..
end2end Don't use shlex for configtypes.ShellCommand 2017-09-14 14:44:24 +02:00
helpers Add initial support for standarddir.config(auto=True) 2017-09-13 17:26:56 +02:00
manual Update some more references to old config options 2017-07-04 16:46:02 +02:00
unit Don't use shlex for configtypes.ShellCommand 2017-09-14 14:44:24 +02:00
conftest.py Skip tests needing AppDataLocation on older Qt versions 2017-09-13 21:32:22 +02:00
test_conftest.py Finally update copyrights... 2017-05-09 21:37:03 +02:00