mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 07:45:47 +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, modes.COMMAND_LINE], "", "");
|
||||||
addAbbreviationCommands([modes.INSERT], "i", "INSERT");
|
[modes.INSERT, modes.COMMAND_LINE].forEach(function (mode) {
|
||||||
addAbbreviationCommands([modes.COMMAND_LINE], "c", "COMMAND_LINE");
|
addAbbreviationCommands([mode], mode.char, mode.displayName);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -753,7 +753,7 @@ var Mappings = Module("mappings", {
|
|||||||
({ helpTag: prefix + map.name, __proto__: map }
|
({ helpTag: prefix + map.name, __proto__: map }
|
||||||
for (map in self.iterate(args, true))
|
for (map in self.iterate(args, true))
|
||||||
if (map.hive === mappings.builtin || Set.has(tags, prefix + map.name))),
|
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",
|
index: mode.char + "-map",
|
||||||
getMode: function (args) mode,
|
getMode: function (args) mode,
|
||||||
options: []
|
options: []
|
||||||
|
|||||||
Reference in New Issue
Block a user