… | |
… | |
69 | |
69 | |
70 | /[\\"'\ \t|&;<>()]/ |
70 | /[\\"'\ \t|&;<>()]/ |
71 | and $add_button->("shell quote" => sub { $_ = "\Q$_" }); |
71 | and $add_button->("shell quote" => sub { $_ = "\Q$_" }); |
72 | |
72 | |
73 | /^(http|ftp|telnet|irc|news):\// |
73 | /^(http|ftp|telnet|irc|news):\// |
74 | and $add_button->("run $self->{browser}" => sub { urxvt::exec_async $self->{browser}, $_ }); |
74 | and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) }); |
75 | |
75 | |
76 | for my $hook (@hook) { |
76 | for my $hook (@hook) { |
77 | if (my ($title, $cb) = $hook->($popup)) { |
77 | if (my ($title, $cb) = $hook->($popup)) { |
78 | $add_button->($title, $cb); |
78 | $add_button->($title, $cb); |
79 | } |
79 | } |