diff --git a/common/content/tabs.js b/common/content/tabs.js index dd8b4f4d..8f5f6578 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -223,9 +223,14 @@ function Tabs() //{{{ "Go to the last tab", function (count) { tabs.select("$"); }); - mappings.add([modes.NORMAL], ["gt", "", "", ""], + mappings.add([modes.NORMAL], ["gt"], "Go to the next tab", - function (count) { tabs.select(count > 0 ? count - 1: "+1", count > 0 ? false : true); }, + function (count) { tabs.select(count > 0 ? count - 1 : "+1", count > 0 ? false : true); }, + { flags: Mappings.flags.COUNT }); + + mappings.add([modes.NORMAL], ["", "", ""], + "Go to the next tab", + function (count) { tabs.select("+" + (count < 1 ? 1 : count), true); }, { flags: Mappings.flags.COUNT }); mappings.add([modes.NORMAL], ["gT", "", "", ""], diff --git a/vimperator/NEWS b/vimperator/NEWS index dc72df66..7a69e195 100644 --- a/vimperator/NEWS +++ b/vimperator/NEWS @@ -21,8 +21,9 @@ * IMPORTANT: 'verbose' is now by default at 1, set to 0 to not show any status messages * IMPORTANT: $VIMPERATOR_HOME is no longer used. - * Added ~/.vimperator/info/{profile}/, similar to viminfo - * added $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT + * [count] now goes to the [count]th next tab rather than the [count]th tab. + * add ~/.vimperator/info/{profile}/, similar to viminfo + * add $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT * :hardcopy now supports output redirection to a file on Unix and MacUnix * add ";f" extended hint mode to focus a frame * add "r", "l", and "b" to 'guioptions' to toggle the scrollbars. diff --git a/vimperator/locale/en-US/tabs.txt b/vimperator/locale/en-US/tabs.txt index 63242e17..3305e05d 100644 --- a/vimperator/locale/en-US/tabs.txt +++ b/vimperator/locale/en-US/tabs.txt @@ -59,13 +59,19 @@ but in the other direction. ________________________________________________________________________________ -|| || || |gt| + +|gt| + ||[count]gt|| ________________________________________________________________________________ Go to the next tab. Cycles to the first tab, when the last is selected. + If [count] is specified go to the [count]th tab. ________________________________________________________________________________ +|| || || + +||[count]|| +________________________________________________________________________________ +Go to the next tab. Cycles to the first tab, when the last is selected. + +If [count] is specified go to the [count]th next tab. +________________________________________________________________________________ || || || |gT| + ||[count]gT||