qutebrowser/tests/unit
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
..
browser Introduce standarddir caching 2017-09-13 17:26:56 +02:00
commands Introduce standarddir caching 2017-09-13 17:26:56 +02:00
completion Remove stray FIXME:conf 2017-09-07 07:32:46 -04:00
config Don't use shlex for configtypes.ShellCommand 2017-09-14 14:44:24 +02:00
javascript Finally update copyrights... 2017-05-09 21:37:03 +02:00
keyinput Remove support for ambiguous keybindings 2017-09-14 00:37:01 +02:00
mainwindow Use upper-case Monospace in test_progress_affecting_statusbar_height 2017-09-12 22:51:52 +02:00
misc Introduce standarddir caching 2017-09-13 17:26:56 +02:00
scripts Finally update copyrights... 2017-05-09 21:37:03 +02:00
utils Don't move cache directory on Windows 2017-09-14 13:35:42 +02:00
test_app.py Finally update copyrights... 2017-05-09 21:37:03 +02:00