1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 02:45:45 +01:00

Allow <Tab> completion of ;hint modes

This commit is contained in:
Kris Maglione
2008-12-03 21:06:26 -05:00
parent f3d9a3f0d9
commit 287dfb424e
5 changed files with 57 additions and 32 deletions

View File

@@ -598,8 +598,18 @@ 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);
},
{
completer: function (context) {
context.completions = [[k, v.prompt] for ([k, v] in Iterator(hintModes))]
},
onChange: function () { commandline.close() }
});
});
//{ flags: Mappings.flags.ARGUMENT });
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////