1urxvt-selection-popup(1)         RXVT-UNICODE         urxvt-selection-popup(1)
2
3
4

NAME

6       selection-popup (enabled by default)
7

DESCRIPTION

9       Binds a popup menu to Ctrl-Button3 that lets you paste the X selections
10       and either modify or use the internal selection text in various ways
11       (such as uri unescaping, perl evaluation, web-browser starting etc.),
12       depending on content.
13
14       Other extensions can extend this popup menu by pushing a code reference
15       onto "@{ $term->{selection_popup_hook} }", which gets called whenever
16       the popup is being displayed.
17
18       Its sole argument is the popup menu, which can be modified. The
19       selection is in $_, which can be used to decide whether to add
20       something or not.  It should either return nothing or a string and a
21       code reference. The string will be used as button text and the code
22       reference will be called when the button gets activated and should
23       transform $_.
24
25       The following will add an entry "a to b" that transforms all "a"s in
26       the selection to "b"s, but only if the selection currently contains any
27       "a"s:
28
29          push @{ $self->{term}{selection_popup_hook} }, sub {
30             /a/ ? ("a to b" => sub { s/a/b/g }
31                 : ()
32          };
33
34
35
369.22                              2019-01-04          urxvt-selection-popup(1)
Impressum