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:
@@ -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 });
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
Reference in New Issue
Block a user