digit.
- better option handling, support more than 30 options (exg).
- nuke reconf script, serves no purpose anymore.
- - disabled matcher/on_user_command processing in matcher extension.
+ - fixed and documented matcher/on_user_command processing in matcher
+ extension.
8.2 Sat Feb 17 21:35:28 CET 2007
- fix make depend in src/, reported by exg.
)+
}x;
-#sub on_user_command {
-# my ($self, $cmd) = @_;
-# if($cmd =~ s/^matcher\b//) {
-# $self->most_recent;
-# }
-# my $row = $self->nrow;
-# my @exec;
-# while($row-- > $self->top_row) {
-# #my $line = $self->line ($row);
-# #my $text = $line->t;
-# @exec = $self->command_for($row);
-# last if(@exec);
-# }
-# if(@exec) {
-# return $self->exec_async (@exec);
-# }
-# ()
-#}
-#
-#sub most_recent {
-# my ($self) = shift;
-# ()
-#}
+sub on_user_command {
+ my ($self, $cmd) = @_;
+ if($cmd =~ s/^matcher\b//) {
+ $self->most_recent;
+ }
+ ()
+}
+
+sub most_recent {
+ my ($self) = shift;
+ my $row = $self->nrow;
+ my @exec;
+ while($row-- > $self->top_row) {
+ #my $line = $self->line ($row);
+ #my $text = $line->t;
+ @exec = $self->command_for($row);
+ last if(@exec);
+ }
+ if(@exec) {
+ return $self->exec_async (@exec);
+ }
+ ()
+}
sub my_resource {
my $self = shift;
with numbered patterns, in a manner similar to the "selection" extension.
The launcher can also be overridden on a per-pattern basis.
+It is possible to activate the most recently seen match from the keyboard.
+Simply bind a keysym to "perl:matcher" as seen in the example below.
+
Example configuration:
URxvt.perl-ext: default,matcher