diff --git a/AUTHORS b/AUTHORS index ab207a83..532078ea 100644 --- a/AUTHORS +++ b/AUTHORS @@ -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 diff --git a/NEWS b/NEWS index f45b255e..083e63aa 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@
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)
diff --git a/content/tabs.js b/content/tabs.js
index 6259917d..c41f24fb 100644
--- a/content/tabs.js
+++ b/content/tabs.js
@@ -250,8 +250,15 @@ liberator.Tabs = function () //{{{
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add([liberator.modes.NORMAL], ["", ""],
- "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 });
}
/////////////////////////////////////////////////////////////////////////////}}}
diff --git a/locale/en-US/tabs.txt b/locale/en-US/tabs.txt
index ed2047d9..0839ae2b 100644
--- a/locale/en-US/tabs.txt
+++ b/locale/en-US/tabs.txt
@@ -77,10 +77,10 @@ ________________________________________________________________________________
|| || +
-||||
+||[count]||
________________________________________________________________________________
-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.
________________________________________________________________________________