1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 08:14:12 +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",
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",
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 });
mappings.add([modes.NORMAL], ["gT", "<C-p>", "<C-S-Tab>", "<C-PageUp>"],