From b7bf6ac5054d4023bacff64a392218675c008921 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 24 Jan 2016 00:42:18 +0100 Subject: [PATCH] support $match->{handler} to overwrite handler for certain matches E.g. a different handler for YouTube URLs to automatically download the video. --- bin/fcscs | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/fcscs b/bin/fcscs index e2a89b7..9c33fe9 100755 --- a/bin/fcscs +++ b/bin/fcscs @@ -1212,6 +1212,7 @@ RESULT: 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}); -- 2.43.2