… | |
… | |
60 | } |
60 | } |
61 | |
61 | |
62 | sub on_start { |
62 | sub on_start { |
63 | my ($self) = @_; |
63 | my ($self) = @_; |
64 | |
64 | |
65 | $self->{pastebin_cmd} = $self->x_resource ("selection-pastebin.cmd") |
65 | $self->{pastebin_cmd} = $self->x_resource ("%.cmd") |
66 | || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; |
66 | || "rcp -p % ruth:/var/www/www.ta-sa.org/files/txt/"; |
67 | |
67 | |
68 | $self->{pastebin_url} = $self->x_resource ("selection-pastebin.url") |
68 | $self->{pastebin_url} = $self->x_resource ("%.url") |
69 | || "http://www.ta-sa.org/files/txt/%"; |
69 | || "http://www.ta-sa.org/files/txt/%"; |
70 | |
70 | |
71 | push @{ $self->{term}{selection_popup_hook} }, sub { |
71 | push @{ $self->{term}{selection_popup_hook} }, sub { |
72 | ("pastebin upload" => sub { $self->upload_paste }) |
72 | ("pastebin upload" => sub { $self->upload_paste }) |
73 | }; |
73 | }; |