From 1ef2f042cf0e78371fa7ae5d3034355b3bac8a21 Mon Sep 17 00:00:00 2001 From: Panagiotis Ktistakis Date: Wed, 20 Apr 2016 19:39:18 +0300 Subject: [PATCH] Mention {url:pretty} in the docs --- qutebrowser/browser/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 278380578..e30d9884e 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -974,8 +974,10 @@ class CommandDispatcher: def spawn(self, cmdline, userscript=False, verbose=False, detach=False): """Spawn a command in a shell. - Note the {url} variable which gets replaced by the current URL might be - useful here. + Note the `{url}` and `{url:pretty}` variables might be 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: userscript: Run the command as a userscript. You can use an