The command names given in the bindings list can now be followed to
their help pages.
The generate() functions for apropos and describe-bindings could be
refactored now.
---
modules/help.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/help.js b/modules/help.js
index 1dfffee..0eba877 100644
--- a/modules/help.js
+++ b/modules/help.js
@@ -212,10 +212,13 @@ describe_bindings_buffer.prototype = {
if (typeof(bind.command) == "function") {
g.text("[function]", command_td);
} else {
- g.text(bind.command, command_td);
let cmd = interactive_commands.get(bind.command);
- if (cmd != null)
+ if (cmd != null) {
+ g.command_reference(cmd.name, command_td);
help_str = cmd.shortdoc;
+ } else {
+ g.text(bind.command, command_td);
+ }
}
} else if (bind.fallthrough)
g.text("[pass through]", command_td);
--
1.7.0
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror