From eb4c806ddb4d88b7221c27d77aa3934268371af8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 22 Feb 2018 08:04:23 +0100 Subject: [PATCH] Add URL pattern to settings output --- qutebrowser/config/configcommands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/configcommands.py b/qutebrowser/config/configcommands.py index 1c1b1c686..fb8bb9fe5 100644 --- a/qutebrowser/config/configcommands.py +++ b/qutebrowser/config/configcommands.py @@ -62,7 +62,11 @@ class ConfigCommands: """Print the value of the given option.""" with self._handle_config_error(): value = self._config.get_str(option, pattern=pattern) - message.info("{} = {}".format(option, value)) + + text = "{} = {}".format(option, value) + if pattern is not None: + text += " for {}".format(pattern) + message.info(text) @cmdutils.register(instance='config-commands') @cmdutils.argument('option', completion=configmodel.option)