… | |
… | |
57 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
57 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
58 | |
58 | |
59 | You can look at the source of the selection extension to see more |
59 | You can look at the source of the selection extension to see more |
60 | interesting uses, such as parsing a line from beginning to end. |
60 | interesting uses, such as parsing a line from beginning to end. |
61 | |
61 | |
62 | This extension also offers the following bindable keyboard command: |
62 | This extension also offers following bindable keyboard commands: |
63 | |
63 | |
64 | rot13 |
64 | rot13 |
65 | Rot-13 the selection when activated. Used via keyboard trigger: |
65 | Rot-13 the selection when activated. Used via keyboard trigger: |
66 | |
66 | |
67 | URxvt.keysym.C-M-r: perl:selection:rot13 |
67 | URxvt.keysym.C-M-r: perl:selection:rot13 |
|
|
68 | |
|
|
69 | remote-pastebin |
|
|
70 | Upload the selection as textfile to a remote site. |
|
|
71 | |
|
|
72 | URxvt.keysym.C-M-e: perl:selection:remote-pastebin |
|
|
73 | |
|
|
74 | To set the command to upload the file set this resource: |
|
|
75 | |
|
|
76 | URxvt.selection-pastebin-cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/. |
|
|
77 | |
|
|
78 | The % is the placeholder for the textfile. The name of the |
|
|
79 | textfile is the hex encoded md5 sum of the selection. After an |
|
|
80 | successful upload the selection will be replaced by the |
|
|
81 | following url (the % is the placeholder for the filename): |
|
|
82 | |
|
|
83 | URxvt.selection-pastebin-url: http://www.ta-sa.org/files/txt/% |
68 | |
84 | |
69 | option-popup (enabled by default) |
85 | option-popup (enabled by default) |
70 | Binds a popup menu to Ctrl-Button2 that lets you toggle (some) |
86 | Binds a popup menu to Ctrl-Button2 that lets you toggle (some) |
71 | options at runtime. |
87 | options at runtime. |
72 | |
88 | |
… | |
… | |
384 | |
400 | |
385 | Using this function has the advantage that its output ends up in the |
401 | Using this function has the advantage that its output ends up in the |
386 | correct place, e.g. on stderr of the connecting urxvtc client. |
402 | correct place, e.g. on stderr of the connecting urxvtc client. |
387 | |
403 | |
388 | Messages have a size limit of 1023 bytes currently. |
404 | Messages have a size limit of 1023 bytes currently. |
389 | |
|
|
390 | $is_safe = urxvt::safe |
|
|
391 | Returns true when it is safe to do potentially unsafe things, such |
|
|
392 | as evaluating perl code specified by the user. This is true when |
|
|
393 | urxvt was started setuid or setgid. |
|
|
394 | |
405 | |
395 | $time = urxvt::NOW |
406 | $time = urxvt::NOW |
396 | Returns the "current time" (as per the event loop). |
407 | Returns the "current time" (as per the event loop). |
397 | |
408 | |
398 | urxvt::CurrentTime |
409 | urxvt::CurrentTime |