From 089e1ee91b3f4291953dc264ebe8485904fe484c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 16 Jun 2017 18:10:04 +0200 Subject: [PATCH] Rewrite various references to old settings --- doc/help/commands.asciidoc | 4 ++-- qutebrowser/browser/commands.py | 16 ++++++++-------- qutebrowser/browser/downloads.py | 2 +- qutebrowser/browser/hints.py | 2 +- qutebrowser/browser/qtnetworkdownloads.py | 2 +- .../browser/webengine/webenginesettings.py | 2 +- qutebrowser/config/configdata.yml | 4 ++-- qutebrowser/html/no_pdfjs.html | 4 ++-- qutebrowser/mainwindow/tabbedbrowser.py | 2 +- qutebrowser/mainwindow/tabwidget.py | 2 +- qutebrowser/misc/sessions.py | 2 +- qutebrowser/utils/utils.py | 5 ++--- tests/end2end/features/keyinput.feature | 2 +- tests/end2end/features/misc.feature | 18 +++++------------- tests/end2end/features/tabs.feature | 12 ++++++------ tests/end2end/features/test_editor_bdd.py | 4 ++-- 16 files changed, 37 insertions(+), 46 deletions(-) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 05bf3ad93..0d08253b7 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -338,7 +338,7 @@ Show help about a command or setting. * +'topic'+: The topic to show help for. - :__command__ for commands. - - __section__\->__option__ for settings. + - __option.foo.bar__ for settings. ==== optional arguments @@ -408,7 +408,7 @@ Start hinting. * +*-m*+, +*--mode*+: The hinting mode to use. - `number`: Use numeric hints. - - `letter`: Use the chars in the hints->chars settings. + - `letter`: Use the chars in the hints.chars settings. - `word`: Use hint words based on the html elements and the extra words. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 0b46730f8..938b62f29 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -178,7 +178,7 @@ class CommandDispatcher: prev: Force selecting the tab before the current tab. next_: Force selecting the tab after the current tab. opposite: Force selecting the tab in the opposite direction of - what's configured in 'tabs->select-on-remove'. + what's configured in 'tabs.select_on_remove'. Return: QTabBar.SelectLeftTab, QTabBar.SelectRightTab, or None if no change @@ -197,7 +197,7 @@ class CommandDispatcher: return QTabBar.SelectLeftTab elif conf_selection == QTabBar.SelectPreviousTab: raise cmdexc.CommandError( - "-o is not supported with 'tabs->select-on-remove' set to " + "-o is not supported with 'tabs.select_on_remove' set to " "'last-used'!") else: # pragma: no cover raise ValueError("Invalid select-on-remove value " @@ -212,7 +212,7 @@ class CommandDispatcher: prev: Force selecting the tab before the current tab. next_: Force selecting the tab after the current tab. opposite: Force selecting the tab in the opposite direction of - what's configured in 'tabs->select-on-remove'. + what's configured in 'tabs.select_on_remove'. count: The tab index to close, or None """ tabbar = self._tabbed_browser.tabBar() @@ -250,7 +250,7 @@ class CommandDispatcher: prev: Force selecting the tab before the current tab. next_: Force selecting the tab after the current tab. opposite: Force selecting the tab in the opposite direction of - what's configured in 'tabs->select-on-remove'. + what's configured in 'tabs.select_on_remove'. force: Avoid confirmation for pinned tabs. count: The tab index to close, or None """ @@ -268,7 +268,7 @@ class CommandDispatcher: def tab_pin(self, count=None): """Pin/Unpin the current/[count]th tab. - Pinning a tab shrinks it to tabs->pinned-width size. + Pinning a tab shrinks it to `tabs.width.pinned` size. Attempting to close a pinned tab will cause a confirmation, unless --force is passed. @@ -1530,7 +1530,7 @@ class CommandDispatcher: topic: The topic to show help for. - :__command__ for commands. - - __section__\->__option__ for settings. + - __section__.__option__ for settings. """ if topic is None: path = 'index.html' @@ -1607,7 +1607,7 @@ class CommandDispatcher: """Open an external editor with the currently selected form field. The editor which should be launched can be configured via the - `general -> editor` config option. + `editor.command` config option. """ tab = self._current_widget() tab.elements.find_focused(self._open_editor_cb) @@ -2100,7 +2100,7 @@ class CommandDispatcher: """Navigate to a url formed in an external editor. The editor which should be launched can be configured via the - `general -> editor` config option. + `editor.command` config option. Args: url: URL to edit; defaults to the current page url. diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index c642a56ab..de16a60ff 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -88,7 +88,7 @@ def immediate_download_path(prompt_download_directory=None): Args: prompt_download_directory: If this is something else than None, it will overwrite the - storage->prompt-download-directory setting. + downloads.location.prompt setting. """ if prompt_download_directory is None: prompt_download_directory = config.val.downloads.location.prompt diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 80b253512..32f52c161 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -649,7 +649,7 @@ class HintManager(QObject): mode: The hinting mode to use. - `number`: Use numeric hints. - - `letter`: Use the chars in the hints->chars settings. + - `letter`: Use the chars in the hints.chars setting. - `word`: Use hint words based on the html elements and the extra words. diff --git a/qutebrowser/browser/qtnetworkdownloads.py b/qutebrowser/browser/qtnetworkdownloads.py index bf41540e1..d5f232e8a 100644 --- a/qutebrowser/browser/qtnetworkdownloads.py +++ b/qutebrowser/browser/qtnetworkdownloads.py @@ -480,7 +480,7 @@ class DownloadManager(downloads.AbstractDownloadManager): reply: The QNetworkReply to download. target: Where to save the download as downloads.DownloadTarget. auto_remove: Whether to remove the download even if - ui -> remove-finished-downloads is set to -1. + downloads.remove_finished is set to -1. Return: The created DownloadItem. diff --git a/qutebrowser/browser/webengine/webenginesettings.py b/qutebrowser/browser/webengine/webenginesettings.py index 3552a55c2..f903b180b 100644 --- a/qutebrowser/browser/webengine/webenginesettings.py +++ b/qutebrowser/browser/webengine/webenginesettings.py @@ -110,7 +110,7 @@ class DefaultProfileSetter(websettings.Base): class PersistentCookiePolicy(DefaultProfileSetter): - """The cookies -> store setting is different from other settings.""" + """The content.cookies.store setting is different from other settings.""" def __init__(self): super().__init__('setPersistentCookiesPolicy') diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 2e62d9086..38b563dc5 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1016,7 +1016,7 @@ tabs.favicons.scale: name: Float minval: 0.0 desc: Scale for favicons in the tab bar. The tab size is unchanged, so big favicons - also require extra `tabs->padding`. + also require extra `tabs.padding`. tabs.favicons.show: default: true @@ -1092,7 +1092,7 @@ tabs.show: tabs.show_switching_delay: default: 800 type: Int - desc: "Time to show the tab bar before hiding it when tabs->show is set to + desc: "Time to show the tab bar before hiding it when tabs.show is set to 'switching'." tabs.tabs_are_windows: diff --git a/qutebrowser/html/no_pdfjs.html b/qutebrowser/html/no_pdfjs.html index d6206e8b2..c38273f33 100644 --- a/qutebrowser/html/no_pdfjs.html +++ b/qutebrowser/html/no_pdfjs.html @@ -74,7 +74,7 @@ li {

Error while opening {{ url }}

qutebrowser can't find a suitable pdf.js installation

-

It looks like you set content -> enable-pdfjs +

It looks like you set content.pdfjs to true but qutebrowser can't find the required files.


@@ -82,7 +82,7 @@ li {

Possible fixes