1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 15:22:26 +01:00

More mode display name normalisation.

This commit is contained in:
Doug Kearns
2011-08-04 16:46:05 +10:00
parent 904335c138
commit d9c2c15965
2 changed files with 4 additions and 3 deletions

View File

@@ -376,8 +376,9 @@ var Abbreviations = Module("abbreviations", {
}
addAbbreviationCommands([modes.INSERT, modes.COMMAND_LINE], "", "");
addAbbreviationCommands([modes.INSERT], "i", "INSERT");
addAbbreviationCommands([modes.COMMAND_LINE], "c", "COMMAND_LINE");
[modes.INSERT, modes.COMMAND_LINE].forEach(function (mode) {
addAbbreviationCommands([mode], mode.char, mode.displayName);
});
}
});

View File

@@ -753,7 +753,7 @@ var Mappings = Module("mappings", {
({ helpTag: prefix + map.name, __proto__: map }
for (map in self.iterate(args, true))
if (map.hive === mappings.builtin || Set.has(tags, prefix + map.name))),
description: "List all " + mode.name + " mode mappings along with their short descriptions",
description: "List all " + mode.displayName + " mode mappings along with their short descriptions",
index: mode.char + "-map",
getMode: function (args) mode,
options: []