summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
82bb39f)
E.g. a different handler for YouTube URLs to automatically download the
video.
debug \%config, 'input', 'running handler';
my $handler = $config{state}{handler}; # set by user
debug \%config, 'input', 'running handler';
my $handler = $config{state}{handler}; # set by user
+ $handler = $result->{match}->{handler} unless defined $handler; # set by match
$handler = $result->{handler} unless defined $handler; # set by mapping
$handler = $config{handler}{yank} unless defined $handler; # fallback
$handler->($screen, \%config, $result->{match});
$handler = $result->{handler} unless defined $handler; # set by mapping
$handler = $config{handler}{yank} unless defined $handler; # fallback
$handler->($screen, \%config, $result->{match});