Mention {url:pretty} in the docs

This commit is contained in:
Panagiotis Ktistakis 2016-04-20 19:39:18 +03:00
parent 8550fb3401
commit 1ef2f042cf

View File

@ -974,8 +974,10 @@ class CommandDispatcher:
def spawn(self, cmdline, userscript=False, verbose=False, detach=False): def spawn(self, cmdline, userscript=False, verbose=False, detach=False):
"""Spawn a command in a shell. """Spawn a command in a shell.
Note the {url} variable which gets replaced by the current URL might be Note the `{url}` and `{url:pretty}` variables might be useful here.
useful here. `{url}` gets replaced by the URL in fully encoded format and
`{url:pretty}` uses a "pretty form" with most percent-encoded
characters decoded.
Args: Args:
userscript: Run the command as a userscript. You can use an userscript: Run the command as a userscript. You can use an