1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 12:34:11 +01:00

@@ and some checks added to macro/recording...

This commit is contained in:
Marco Candrian
2007-12-16 05:01:26 +00:00
parent cbaca2dc3e
commit 6d9d3ace05
2 changed files with 48 additions and 11 deletions

View File

@@ -1294,14 +1294,16 @@ vimperator.Mappings = function () //{{{
function (arg) { vimperator.events.startRecording(arg); },
{
shortHelp: "record a macro into a register",
help: "record a macro; [a-zA-Z0-9] are valid registers",
help: "Record typed characters into register {0-9a-zA-Z} (uppercase to append)." +
"type 'q' to stop recording.",
flags: vimperator.Mappings.flags.ARGUMENT
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["@"],
function (arg) { vimperator.events.playMacro(arg); },
function (arg) { vimperator.events.playRegister(arg); },
{
shortHelp: "play a macro",
shortHelp: "Execute the contents of register {0-9a-z}. @@ repeats the previous @{0-9a-z}",
flags: vimperator.Mappings.flags.ARGUMENT
}
));