ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/selection-popup
(Generate patch)

Comparing rxvt-unicode/src/perl/selection-popup (file contents):
Revision 1.2 by root, Mon Jan 9 01:21:43 2006 UTC vs.
Revision 1.3 by root, Mon Jan 9 02:06:43 2006 UTC

35 }; 35 };
36 36
37 for ($text) { 37 for ($text) {
38 $add_button->("rot13" => sub { y/A-Za-z/N-ZA-Mn-za-m/ }); 38 $add_button->("rot13" => sub { y/A-Za-z/N-ZA-Mn-za-m/ });
39 39
40 urxvt::safe
41 and $add_button->("eval perl expression" => sub { $_ = eval urxvt::untaint $_ });
42
40 /^(\S+):(\d+):?$/ 43 /^(\S+):(\d+):?$/
41 and $add_button->("vi-commands to load '$1'" => sub { s/^(\S+):(\d+):?$/\x1b:e $1\x0d:$2\x0d/ }); 44 and $add_button->("vi-commands to load '$1'" => sub { s/^(\S+):(\d+):?$/\x1b:e $1\x0d:$2\x0d/ });
42 45
43 /%[0-9a-fA-F]{2}/ && !/%[^0-9a-fA-F]/ && !/%.[^0-9a-fA-F]/ 46 /%[0-9a-fA-F]{2}/ && !/%[^0-9a-fA-F]/ && !/%.[^0-9a-fA-F]/
44 and $add_button->("uri unescape" => sub { s/%([0-9a-fA-F]{2})/chr hex $1/ge }); 47 and $add_button->("uri unescape" => sub { s/%([0-9a-fA-F]{2})/chr hex $1/ge });

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines