1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 02:22:26 +01:00

new gb and gB commands

This commit is contained in:
Martin Stubenschrott
2007-10-16 21:43:25 +00:00
parent 83df17f660
commit 233e5aa58a
4 changed files with 85 additions and 32 deletions

View File

@@ -419,6 +419,22 @@ function Mappings() //{{{
"WARNING: This mapping may be removed/changed in future."
}
));
addDefaultMap(new Map([vimperator.modes.NORMAL], ["gb"],
function(count) { vimperator.buffer.switchTo(null, null, count, false); },
{
short_help: "Repeat last :buffer[!] command",
help: "This is useful to quickly jump between buffers which have a similar URL or title.",
flags: Mappings.flags.COUNT
}
));
addDefaultMap(new Map([vimperator.modes.NORMAL], ["gB"],
function(count) { vimperator.buffer.switchTo(null, null, count, true); },
{
short_help: "Repeat last :buffer[!] command in reverse direction",
help: "Just like <code class=\"mapping\">gb</code> but in the other direction.",
flags: Mappings.flags.COUNT
}
));
addDefaultMap(new Map([vimperator.modes.NORMAL], ["d"],
function(count) { vimperator.tabs.remove(getBrowser().mCurrentTab, count, false, 0); },
{