show commands in help screen in the same syntax they are parsed

This commit is contained in:
Henrik Friedrichsen
2020-02-05 22:48:35 +01:00
parent cea2cbb33e
commit 54230bd85b
6 changed files with 95 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ impl HelpView {
keys.sort();
for key in keys {
let command = serde_json::to_string(&bindings[key]).unwrap_or_default();
let command = &bindings[key];
let binding = format!("{} -> {}\n", key, command);
text.append(binding);
}