diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index fe86b577b..d73979d33 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -282,6 +282,7 @@ |<>|Alignment of the text inside of tabs. |<>|Format to use for the tab title. |<>|Format to use for the tab title for pinned tabs. The same placeholders like for `tabs.title.format` are defined. +|<>|Show tooltips on tabs. |<>|Number of close tab actions to remember, per window (-1 for no maximum). |<>|Width (in pixels or as percentage of the window) of the tab bar if it's vertical. |<>|Wrap when changing tabs. @@ -3538,6 +3539,15 @@ Type: <> Default: +pass:[{index}]+ +[[tabs.tooltips]] +=== tabs.tooltips +Show tooltips on tabs. +This setting requires a restart. + +Type: <> + +Default: +pass:[true]+ + [[tabs.undo_stack_size]] === tabs.undo_stack_size Number of close tab actions to remember, per window (-1 for no maximum). diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index b45c77317..50f863e2a 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -1780,6 +1780,12 @@ tabs.wrap: type: Bool desc: Wrap when changing tabs. +tabs.tooltips: + default: true + type: Bool + restart: true + desc: Show tooltips on tabs. + ## url url.auto_search: diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 1953c2012..43b194159 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -153,8 +153,9 @@ class TabWidget(QTabWidget): if tabbar.tabText(idx) != title: tabbar.setTabText(idx, title) - # always show only plain title in tooltips - tabbar.setTabToolTip(idx, fields['current_title']) + if config.cache['tabs.tooltips']: + # always show only plain title in tooltips + tabbar.setTabToolTip(idx, fields['current_title']) def get_tab_fields(self, idx): """Get the tab field data."""