diff options
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/config/configcommands.py | 5 | ||||
-rw-r--r-- | qutebrowser/html/bindings.html | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/qutebrowser/config/configcommands.py b/qutebrowser/config/configcommands.py index 417ffce00..407c74214 100644 --- a/qutebrowser/config/configcommands.py +++ b/qutebrowser/config/configcommands.py @@ -151,9 +151,12 @@ class ConfigCommands: default: If given, restore a default binding. """ if key is None: + url = QUrl('qute://bindings') + if mode != "normal": + url.setFragment(mode) tabbed_browser = objreg.get('tabbed-browser', scope='window', window=win_id) - tabbed_browser.load_url(QUrl('qute://bindings'), newtab=True) + tabbed_browser.load_url(url, newtab=True) return seq = self._parse_key(key) diff --git a/qutebrowser/html/bindings.html b/qutebrowser/html/bindings.html index fe6913402..7bc441cbd 100644 --- a/qutebrowser/html/bindings.html +++ b/qutebrowser/html/bindings.html @@ -10,7 +10,7 @@ th { text-align:left; } {% block content %} <header><h1>{{ title }}</h1></header> {% for mode, binding in bindings.items() %} -<h2>{{ mode | capitalize }} mode</h2> +<h2 id="{{ mode }}">{{ mode | capitalize }} mode</h2> <table> <tr> <th>Key</th> |