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.26 by root, Sun Jun 10 17:31:53 2012 UTC vs.
Revision 1.27 by root, Tue Aug 14 23:57:07 2012 UTC

11Binds a popup menu to Ctrl-Button3 that lets you convert the selection 11Binds a popup menu to Ctrl-Button3 that lets you convert the selection
12text into various other formats/action (such as uri unescaping, perl 12text into various other formats/action (such as uri unescaping, perl
13evaluation, web-browser starting etc.), depending on content. 13evaluation, web-browser starting etc.), depending on content.
14 14
15Other extensions can extend this popup menu by pushing a code reference 15Other extensions can extend this popup menu by pushing a code reference
16onto C<@{ $term->{selection_popup_hook} }>, which gets called whenever the 16onto C<< @{ $term->{selection_popup_hook} } >>, which gets called whenever
17popup is being displayed. 17the popup is being displayed.
18 18
19Its sole argument is the popup menu, which can be modified. The selection 19Its sole argument is the popup menu, which can be modified. The selection
20is in C<$_>, which can be used to decide whether to add something or not. 20is in C<$_>, which can be used to decide whether to add something or not.
21It should either return nothing or a string and a code reference. The 21It should either return nothing or a string and a code reference. The
22string will be used as button text and the code reference will be called 22string will be used as button text and the code reference will be called

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines