using g[0-9] to jump to another tab directly

This commit is contained in:
Hannes Schueller 2010-08-11 17:12:38 +02:00
parent 134166e2e9
commit b1e5bb337d
1 changed files with 13 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static const char progressborderright = ']';
#define DEFAULT_FONT_SIZE 12
/* user agent */
#define USER_AGENT "Vimprobable/0.9.16.0"
#define USER_AGENT "Vimprobable/0.9.16.1"
/* scrolling */
static unsigned int scrollstep = 40; /* cursor difference in pixel */
@ -104,8 +104,20 @@ static Key keys[] = {
{ 0, GDK_q, GDK_9, quickmark, { .s = "9" } },
{ 0, 0, GDK_0, scroll, {ScrollJumpTo | DirectionLeft} },
{ GDK_SHIFT_MASK, 0, GDK_dollar, scroll, {ScrollJumpTo | DirectionRight} },
{ 0, GDK_g, GDK_t, fake_key_event, { .s = "l", .i = ShiftMask + ControlMask }},
{ GDK_SHIFT_MASK, GDK_g, GDK_T, fake_key_event, { .s = "h", .i = ShiftMask + ControlMask }},
{ 0, GDK_g, GDK_1, fake_key_event, { .s = "1", .i = ControlMask } },
{ 0, GDK_g, GDK_2, fake_key_event, { .s = "2", .i = ControlMask } },
{ 0, GDK_g, GDK_3, fake_key_event, { .s = "3", .i = ControlMask } },
{ 0, GDK_g, GDK_4, fake_key_event, { .s = "4", .i = ControlMask } },
{ 0, GDK_g, GDK_5, fake_key_event, { .s = "5", .i = ControlMask } },
{ 0, GDK_g, GDK_6, fake_key_event, { .s = "6", .i = ControlMask } },
{ 0, GDK_g, GDK_7, fake_key_event, { .s = "7", .i = ControlMask } },
{ 0, GDK_g, GDK_8, fake_key_event, { .s = "8", .i = ControlMask } },
{ 0, GDK_g, GDK_9, fake_key_event, { .s = "9", .i = ControlMask } },
{ 0, GDK_g, GDK_0, fake_key_event, { .s = "0", .i = ControlMask } },
{ 0, GDK_g, GDK_g, scroll, {ScrollJumpTo | DirectionTop} },
{ GDK_SHIFT_MASK, 0, GDK_G, scroll, {ScrollJumpTo | DirectionBottom} },
{ 0, 0, GDK_h, scroll, {ScrollMove | DirectionLeft | UnitLine} },