1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +01:00

add count support to C-^ (Kazuo)

This commit is contained in:
Doug Kearns
2008-08-29 01:16:53 +00:00
parent 3a468168c7
commit e8bfe91cd1
4 changed files with 14 additions and 5 deletions

View File

@@ -250,8 +250,15 @@ liberator.Tabs = function () //{{{
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add([liberator.modes.NORMAL], ["<C-^>", "<C-6>"],
"Select the alternate tab",
function () { liberator.tabs.selectAlternateTab(); });
"Select the alternate tab or the [count]th tab",
function (count)
{
if (count < 1)
liberator.tabs.selectAlternateTab();
else
liberator.tabs.switchTo(count.toString(), false);
},
{ flags: liberator.Mappings.flags.COUNT });
}
/////////////////////////////////////////////////////////////////////////////}}}