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

Make [count]<C-n> behave as expected.

This commit is contained in:
Kris Maglione
2009-01-21 03:37:40 -05:00
parent 4d07a8b47f
commit 050cd4b2e4
3 changed files with 17 additions and 5 deletions

View File

@@ -223,9 +223,14 @@ function Tabs() //{{{
"Go to the last tab", "Go to the last tab",
function (count) { tabs.select("$"); }); function (count) { tabs.select("$"); });
mappings.add([modes.NORMAL], ["gt", "<C-n>", "<C-Tab>", "<C-PageDown>"], mappings.add([modes.NORMAL], ["gt"],
"Go to the next tab", "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], ["<C-n>", "<C-Tab>", "<C-PageDown>"],
"Go to the next tab",
function (count) { tabs.select("+" + (count < 1 ? 1 : count), true); },
{ flags: Mappings.flags.COUNT }); { flags: Mappings.flags.COUNT });
mappings.add([modes.NORMAL], ["gT", "<C-p>", "<C-S-Tab>", "<C-PageUp>"], mappings.add([modes.NORMAL], ["gT", "<C-p>", "<C-S-Tab>", "<C-PageUp>"],

View File

@@ -21,8 +21,9 @@
* IMPORTANT: 'verbose' is now by default at 1, set to 0 to not show any status messages * IMPORTANT: 'verbose' is now by default at 1, set to 0 to not show any status messages
* IMPORTANT: $VIMPERATOR_HOME is no longer used. * IMPORTANT: $VIMPERATOR_HOME is no longer used.
* Added ~/.vimperator/info/{profile}/, similar to viminfo * [count]<C-n> now goes to the [count]th next tab rather than the [count]th tab.
* added $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT * add ~/.vimperator/info/{profile}/, similar to viminfo
* add $VIMPERATOR_RUNTIME, $VIMPERATOR_INIT
* :hardcopy now supports output redirection to a file on Unix and MacUnix * :hardcopy now supports output redirection to a file on Unix and MacUnix
* add ";f" extended hint mode to focus a frame * add ";f" extended hint mode to focus a frame
* add "r", "l", and "b" to 'guioptions' to toggle the scrollbars. * add "r", "l", and "b" to 'guioptions' to toggle the scrollbars.

View File

@@ -59,13 +59,19 @@ but in the other direction.
________________________________________________________________________________ ________________________________________________________________________________
|<C-PageDown>| |<C-Tab>| |<C-n>| |gt| + |gt| +
||[count]gt|| ||[count]gt||
________________________________________________________________________________ ________________________________________________________________________________
Go to the next tab. Cycles to the first tab, when the last is selected. + 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. If [count] is specified go to the [count]th tab.
________________________________________________________________________________ ________________________________________________________________________________
|<C-PageDown>| |<C-Tab>| |<C-n>| +
||[count]<C-n>||
________________________________________________________________________________
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.
________________________________________________________________________________
|<C-PageUp>| |<C-S-Tab>| |<C-p>| |gT| + |<C-PageUp>| |<C-S-Tab>| |<C-p>| |gT| +
||[count]gT|| ||[count]gT||