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

NAME

6       selection-pastebin - automatic pastebin upload
7

EXAMPLES

9         URxvt.keysym.C-M-e: selection-pastebin:remote-pastebin
10

DESCRIPTION

12       This is a little rarely useful extension that uploads the selection as
13       textfile to a remote site (or does other things). (The implementation
14       is not currently secure for use in a multiuser environment as it writes
15       to /tmp directly.).
16
17       It listens to the "selection-pastebin:remote-pastebin" action, which,
18       when activated, runs a command with "%" replaced by the name of the
19       textfile. This command can be set via a resource:
20
21          URxvt.selection-pastebin.cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.
22
23       And the default is likely not useful to anybody but the few people
24       around here :)
25
26       The name of the textfile is the hex encoded md5 sum of the selection,
27       so the same content should lead to the same filename.
28
29       After a successful upload the selection will be replaced by the text
30       given in the "selection-pastebin-url" resource (again, the % is the
31       placeholder for the filename):
32
33          URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/%
34
35       Note to xrdb users: xrdb uses the C preprocessor, which might interpret
36       the double "/" characters as comment start. Use "\057\057" instead,
37       which works regardless of whether xrdb is used to parse the resource
38       file or not.
39
40
41
429.30                              2022-01-22       urxvt-selection-pastebin(1)
Impressum