1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 23:35:45 +01:00

Add descriptions for mappable modes.

This commit is contained in:
Kris Maglione
2010-12-30 17:59:57 -05:00
parent f3903dc3d2
commit 2cb3135220
4 changed files with 119 additions and 49 deletions

View File

@@ -513,7 +513,7 @@ var Mappings = Module("mappings", {
names: ["-mode", "-m"],
type: CommandOption.STRING,
validator: function (value) Array.concat(value).every(findMode),
completer: function () [[array.compact([mode.name.toLowerCase().replace(/_/g, "-"), mode.char]), mode.disp]
completer: function () [[array.compact([mode.name.toLowerCase().replace(/_/g, "-"), mode.char]), mode.description]
for (mode in values(modes.all))
if (!mode.hidden)],
};