From d46b0cf3cd9e72d7543b2ffe17d52635ccbf35b2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 8 Oct 2018 20:07:56 +0200 Subject: [PATCH] Update docs --- doc/changelog.asciidoc | 3 +++ doc/help/commands.asciidoc | 4 ++++ qutebrowser/browser/hints.py | 3 +++ 3 files changed, 10 insertions(+) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index a7fdb8f25..22d46b857 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -27,6 +27,8 @@ Added categories are shown in the `:open` completion, and how they are ordered. - New `:config-add-dict` and `:config-add-list` commands to easily add a new element to a dict/list setting. +- New `hints.selectors` setting which allows to configure what CSS selectors + are used for hints, and also allows adding custom hint groups. Changed ~~~~~~~ @@ -42,6 +44,7 @@ Changed - The `:open` completion now also shows search engines by default. - The `content.host_blocking.enabled` setting now supports URL patterns, so the adblocker can be disabled on a given page. +- Elements with a `tabindex` attribute now also get hints by default. Fixed ~~~~~ diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 21e9e05ee..51903da11 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -576,6 +576,10 @@ Start hinting. - `inputs`: Only input fields. + Custom groups can be added via the `hints.selectors` setting + and also used here. + + * +'target'+: What to do with the selected element. diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 1a6cd0538..88ef8c967 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -661,6 +661,9 @@ class HintManager(QObject): - `images`: Only images. - `inputs`: Only input fields. + Custom groups can be added via the `hints.selectors` setting + and also used here. + target: What to do with the selected element. - `normal`: Open the link.