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

Allow <Tab> completion of ;hint modes (again).

This commit is contained in:
Kris Maglione
2008-12-04 08:18:10 -05:00
parent 6c9fc50317
commit bcb9775b03
4 changed files with 38 additions and 22 deletions

View File

@@ -598,8 +598,17 @@ function Hints() //{{{
mappings.add(myModes, [";"],
"Start an extended hint mode",
function (arg) { hints.show(arg); },
{ flags: Mappings.flags.ARGUMENT });
function (arg) {
commandline.input(";", function (arg) { setTimeout(function () hints.show(arg), 0) },
{
promptHighlight: "Normal",
completer: function (context) {
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hintModes))];
},
onChange: function () { modes.pop() }
});
});
//{ flags: Mappings.flags.ARGUMENT });
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
@@ -620,7 +629,7 @@ function Hints() //{{{
liberator.beep();
return;
}
commandline.input(hintMode.prompt + ":", null, { onChange: onInput });
commandline.input(hintMode.prompt + ": ", null, { onChange: onInput });
modes.extended = modes.HINTS;
submode = minor;