1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:32:25 +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

@@ -13,6 +13,7 @@ Inactive/former developers:
* Viktor Kojouharov (Виктор Кожухаров)
Patches (in no special order):
* Kazuo (count support for ctrl-^)
* Daniel Schaffrath (;b support)
* Dominik Meister (:b# support and other buffer related commands)
* Lukas Mai

1
NEWS
View File

@@ -1,6 +1,7 @@
<pre>
2008-08-16:
* version 2.0 (probably)
* add count support to C-^ (Kazuo)
* add 'eventignore' option
* add :tabdetach command
* new ;b extended hint mode (thanks Daniel Schaffrath)

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 });
}
/////////////////////////////////////////////////////////////////////////////}}}

View File

@@ -77,10 +77,10 @@ ________________________________________________________________________________
|<C-6>| |<C-^>| +
||<C-^>||
||[count]<C-^>||
________________________________________________________________________________
Select the alternate tab. The alternate tab is the last selected tab. This
provides a quick method of toggling between two tabs.
Select the alternate tab or the [count]th tab. The alternate tab is the last
selected tab. This provides a quick method of toggling between two tabs.
________________________________________________________________________________