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:
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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: []
|
||||
|
||||
Reference in New Issue
Block a user