qutebrowser/tests/unit/config
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
..
old_configs Merge remote-tracking branch 'upstream/master' into HEAD 2017-08-06 18:13:49 -04:00
test_config.py Don't use shlex for configtypes.ShellCommand 2017-09-14 14:44:24 +02:00
test_configdata.py Fix pylint 2017-07-04 15:34:10 +02:00
test_configexc.py Fix pylint/flake8/vulture errors. 2017-08-20 21:12:38 -04:00
test_configfiles.py Disable qsettings subdir test on macOS 2017-09-13 10:21:23 +02:00
test_configtypes.py Don't use shlex for configtypes.ShellCommand 2017-09-14 14:44:24 +02:00