@The-Compiler requested changes addressed.

This commit is contained in:
Marc Jauvin 2018-01-17 10:11:32 -05:00
parent e25a33790f
commit 5db4493667
2 changed files with 6 additions and 6 deletions

View File

@ -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',

View File

@ -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>