1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 09:54:12 +01:00

improve the frame motion command - add [f to the existing ]f and support

{count} for both
This commit is contained in:
Doug Kearns
2007-06-21 11:45:45 +00:00
parent 3d08bb8dc3
commit 8680e36d8c
2 changed files with 78 additions and 24 deletions

View File

@@ -191,12 +191,18 @@ function Mappings()//{{{
flags: Mappings.flags.ARGUMENT
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["]f"],
focusNextFrame,
addDefaultMap(new Map(vimperator.modes.NORMAL, ["]f"], function(count) { focusNextFrame(count > 1 ? count : 1, true); },
{
short_help: "Focus next frame",
help: "Flashes the next frame in order with a red color, to quickly show where keyboard focus is.<br/>" +
"This may not work correctly for frames with lots of CSS code."
help: "Transfers keyboard focus to the [count]th next frame in order. The newly focused frame is briefly colored red.",
flags: Mappings.flags.COUNT
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["[f"], function(count) { focusNextFrame(count > 1 ? count : 1, false); },
{
short_help: "Focus previous frame",
help: "Transfers keyboard focus to the [count]th previous frame in order. The newly focused frame is briefly colored red.",
flags: Mappings.flags.COUNT
}
));
addDefaultMap(new Map(vimperator.modes.NORMAL, ["b"],