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

marco code, not fully functional yet

This commit is contained in:
Marco Candrian
2007-12-16 00:45:34 +00:00
parent 1de6096906
commit 8b1b17a84f
3 changed files with 59 additions and 4 deletions

View File

@@ -1290,7 +1290,21 @@ vimperator.Mappings = function () //{{{
help: "Repeat the last search 1 time (until count is supported) in the opposite direction."
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["q"],
function (arg) { vimperator.events.startRecording(arg); },
{
shortHelp: "record a macro into a register",
help: "record a macro; [a-zA-Z0-9] are valid registers",
flags: vimperator.Mappings.flags.ARGUMENT
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["@"],
function (arg) { vimperator.events.playMacro(arg); },
{
shortHelp: "play a macro",
flags: vimperator.Mappings.flags.ARGUMENT
}
));
// }}}
// HINTS mode
// {{{