1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 20:17:59 +01:00

Normalise mode name references in command/option/mapping descriptions.

--HG--
extra : rebase_source : e1de378b096c1292f237fcf45b1e6f926f7b6471
This commit is contained in:
Doug Kearns
2011-07-21 23:28:23 +10:00
parent 013408017e
commit bf186edf8f
6 changed files with 13 additions and 13 deletions

View File

@@ -375,8 +375,8 @@ var Abbreviations = Module("abbreviations", {
}
addAbbreviationCommands([modes.INSERT, modes.COMMAND_LINE], "", "");
addAbbreviationCommands([modes.INSERT], "i", "insert");
addAbbreviationCommands([modes.COMMAND_LINE], "c", "command line");
addAbbreviationCommands([modes.INSERT], "i", "INSERT");
addAbbreviationCommands([modes.COMMAND_LINE], "c", "COMMAND_LINE");
}
});

View File

@@ -1680,7 +1680,7 @@ var Buffer = Module("buffer", {
{ count: true });
mappings.add([modes.NORMAL], ["i", "<Insert>"],
"Start caret mode",
"Start CARET mode",
function () { modes.push(modes.CARET); });
mappings.add([modes.NORMAL], ["<C-c>", "<stop-load>"],

View File

@@ -1860,7 +1860,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
});
commands.add(["norm[al]"],
"Execute Normal mode commands",
"Execute NORMAL mode commands",
function (args) { events.feedkeys(args[0], args.bang, false, modes.NORMAL); },
{
argCount: "1",

View File

@@ -729,15 +729,15 @@ var Editor = Module("editor", {
// visual mode
mappings.add([modes.CARET, modes.TEXT_EDIT],
["v"], "Start visual mode",
["v"], "Start VISUAL mode",
function () { modes.push(modes.VISUAL); });
mappings.add([modes.VISUAL],
["v", "V"], "End visual mode",
["v", "V"], "End VISUAL mode",
function () { modes.pop(); });
mappings.add([modes.TEXT_EDIT],
["V"], "Start visual line mode",
["V"], "Start VISUAL LINE mode",
function () {
modes.push(modes.VISUAL, modes.LINE);
editor.executeCommand("cmd_beginLine", 1);
@@ -882,7 +882,7 @@ var Editor = Module("editor", {
});
options.add(["insertmode", "im"],
"Enter Insert mode rather than Text Edit mode when focusing text areas",
"Enter INSERT mode rather than TEXT_EDIT mode when focusing text areas",
"boolean", true);
}
});

View File

@@ -1182,20 +1182,20 @@ var Hints = Module("hints", {
mappings: function () {
var myModes = config.browserModes.concat(modes.OUTPUT_MULTILINE);
mappings.add(myModes, ["f"],
"Start hint mode",
"Start HINTS mode",
function () { hints.show("o"); });
mappings.add(myModes, ["F"],
"Start hint mode, but open link in a new tab",
"Start HINTS mode, but open link in a new tab",
function () { hints.show(options.get("activate").has("links") ? "t" : "b"); });
mappings.add(myModes, [";"],
"Start an extended hint mode",
"Start an extended hints mode",
function ({ count }) { hints.open(";", { count: count }); },
{ count: true });
mappings.add(myModes, ["g;"],
"Start an extended hint mode and stay there until <Esc> is pressed",
"Start an extended hints mode and stay there until <Esc> is pressed",
function ({ count }) { hints.open("g;", { continue: true, count: count }); },
{ count: true });

View File

@@ -689,7 +689,7 @@ var Mappings = Module("mappings", {
if (mode.char && !commands.get(mode.char + "map", true))
addMapCommands(mode.char,
[m.mask for (m in modes.mainModes) if (m.char == mode.char)],
[mode.name.toLowerCase()]);
[mode.name]);
let args = {
getMode: function (args) findMode(args["-mode"]),