Man page - urxvt-selection-popup(1)
Packages contas this manual
- urxvt-confirm-paste(1)
- urxvt-xim-onthespot(1)
- urxvt-clickthrough(1)
- rxvt(1)
- urxvt-keysym-list(1)
- urxvt-extensions(1)
- urxvt-example-refresh-hooks(1)
- urxvt-block-graphics-to-ascii(1)
- urxvt-readline(1)
- urxvt-eval(1)
- urxvt-selection-pastebin(1)
- urxvt-tabbed(1)
- urxvt-matcher(1)
- urxvt-selection-popup(1)
- urxvtcd(1)
- urxvtperl(3)
- urxvt-option-popup(1)
- urxvt(1)
- urxvt-searchable-scrollback(1)
- urxvt-selection-to-clipboard(1)
- urxvtc(1)
- urclock(1)
- urxvtd(1)
- urxvt-overlay-osc(1)
- urxvt-font-size(1)
- urxvt-clipboard-osc(1)
- urxvt-background(1)
- urxvt-digital-clock(1)
- urxvt(7)
- urxvt-remote-clipboard(1)
- urxvt-selection(1)
- urxvt-selection-autotransform(1)
- urxvt-kuake(1)
- urxvt-bell-command(1)
- rxvt-unicode(1)
apt-get install rxvt-unicode
Manual
| urxvt-selection-popup(1) | RXVT-UNICODE | urxvt-selection-popup(1) |
NAME
selection-popup - selection management pop-up
DESCRIPTION
Binds a popup menu to Ctrl-Button3 that lets you paste the X selections and either modify or use the internal selection text in various ways (such as uri unescaping, perl evaluation, web-browser starting etc.), depending on content.
Other extensions can extend this popup menu by pushing a code reference onto "@{ $term->{selection_popup_hook} }", which gets called whenever the popup is being displayed.
Its sole argument is the popup menu, which can be modified. The selection is in $_, which can be used to decide whether to add something or not. It should either return nothing or a string and a code reference. The string will be used as button text and the code reference will be called when the button gets activated and should transform $_.
The following will add an entry "a to b" that transforms all "a"s in the selection to "b"s, but only if the selection currently contains any "a"s:
push @{ $self->{term}{selection_popup_hook} }, sub {
/a/ ? ("a to b" => sub { s/a/b/g }
: ()
};
| 2024-10-15 | 9.31 |