@The-Compiler requested changes addressed.
This commit is contained in:
parent
e25a33790f
commit
5db4493667
@ -436,12 +436,12 @@ def qute_settings(url):
|
|||||||
|
|
||||||
|
|
||||||
@add_handler('bindings')
|
@add_handler('bindings')
|
||||||
def qute_bindings(url):
|
def qute_bindings(_url):
|
||||||
"""Handler for qute://bindings View qute bindings."""
|
"""Handler for qute://bindings. View keybindings."""
|
||||||
assert url
|
|
||||||
|
|
||||||
bindings = {}
|
bindings = {}
|
||||||
for mode in "normal hint command insert passthrough".split():
|
defaults = config.val.bindings.default
|
||||||
|
modes = set(defaults.keys()).union(config.val.bindings.commands)
|
||||||
|
for mode in modes:
|
||||||
bindings[mode] = config.key_instance.get_bindings_for(mode)
|
bindings[mode] = config.key_instance.get_bindings_for(mode)
|
||||||
|
|
||||||
html = jinja.render('bindings.html', title='Bindings',
|
html = jinja.render('bindings.html', title='Bindings',
|
||||||
|
@ -10,7 +10,7 @@ th { text-align:left; }
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<header><h1>{{ title }}</h1></header>
|
<header><h1>{{ title }}</h1></header>
|
||||||
{% for mode, binding in bindings.items() %}
|
{% for mode, binding in bindings.items() %}
|
||||||
<h2>Mode = {{ mode }}</h2>
|
<h2>{{ mode | capitalize }} mode</h2>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Key</th>
|
<th>Key</th>
|
||||||
|
Loading…
Reference in New Issue
Block a user