Patch for Alt + N support tab switching in urxvt tabbed plugin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
311a312,324
> # Mod1 + N support
> # Use Mod1 + 1 .. Mod1 + 12 to activate the corresponding tab
> # If Nth tab does not exist then nothing happens
> if ($event->{state} & urxvt::Mod1Mask) {
> if ($keysym >= 0x31 or $keysym <= 0x3d) {
> my $new_idx = $keysym - 0x31;
> if ($new_idx < @{ $self->{tabs }}) {
> $self->make_current ($self->{tabs}[$new_idx]);
> }
> return 1;
> }
> }
>