mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Partially auto-generate help index. Still needs tag linkification and mappings.
This commit is contained in:
@@ -127,6 +127,8 @@ const Command = Class("Command", {
|
||||
this.options = this.options.map(CommandOption.fromArray, CommandOption);
|
||||
},
|
||||
|
||||
get helpTag() ":" + this.name,
|
||||
|
||||
/**
|
||||
* Execute this command.
|
||||
*
|
||||
@@ -1449,6 +1451,7 @@ const Commands = Module("commands", {
|
||||
dactyl.addUsageCommand({
|
||||
name: ["listc[ommands]", "lc"],
|
||||
description: "List all Ex commands along with their short descriptions",
|
||||
index: "ex-cmd",
|
||||
iterate: function (args) commands,
|
||||
format: {
|
||||
description: function (cmd) template.linkifyHelp(cmd.description + (cmd.replacementText ? ": " + cmd.action : "")),
|
||||
|
||||
Reference in New Issue
Block a user