From e744a7c25a1ca2fd9585f8f842de7b751de3a768 Mon Sep 17 00:00:00 2001 From: Marcel Schilling Date: Mon, 30 Oct 2017 16:33:35 +0100 Subject: [PATCH] avoid code duplication in configdata descriptions * available placeholders are defined for tabs.title.format * tabs.title.format_pinned refers to that definition * window.title.format repeats the identical(!) definition * this replaces the repetion by another reference --- qutebrowser/config/configdata.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index a8522c533..461ecb424 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1435,19 +1435,8 @@ window.title_format: - current_url default: '{perc}{title}{title_sep}qutebrowser' desc: | - The format to use for the window title. - The following placeholders are defined: - - * `{perc}`: The percentage as a string like `[10%]`. - * `{perc_raw}`: The raw percentage, e.g. `10` - * `{title}`: The title of the current web page - * `{title_sep}`: The string ` - ` if a title is set, empty otherwise. - * `{id}`: The internal window ID of this window. - * `{scroll_pos}`: The page scroll position. - * `{host}`: The host of the current web page. - * `{backend}`: Either ''webkit'' or ''webengine'' - * `{private}` : Indicates when private mode is enabled. - * `{current_url}` : The URL of the current web page. + The format to use for the window title. The same placeholders like for + `tabs.title.format` are defined. ## zoom