1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 22:44:11 +01:00

new g0/g$ mappings

This commit is contained in:
Martin Stubenschrott
2007-12-03 06:03:41 +00:00
parent aaf457c3aa
commit eb535ff8bf
3 changed files with 10 additions and 1 deletions

View File

@@ -554,6 +554,14 @@ vimperator.Mappings = function () //{{{
help: "Works like <code class=\"mapping\">P</code>, but inverts the <code class=\"option\">'activate'</code> option."
}
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["g0", "g^"],
function (count) { vimperator.tabs.select(0); },
{ shortHelp: "Go to the first tab" }
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["g$"],
function (count) { vimperator.tabs.select("$"); },
{ shortHelp: "Go to the last tab" }
));
addDefaultMap(new vimperator.Map([vimperator.modes.NORMAL], ["gt", "<C-n>", "<C-Tab>", "<C-PageDown>"],
function (count) { vimperator.tabs.select(count > 0 ? count - 1: "+1", count > 0 ? false : true); },
{