… | |
… | |
31 | |
31 | |
32 | rxvt -pe <extensionname> |
32 | rxvt -pe <extensionname> |
33 | |
33 | |
34 | selection (enabled by default) |
34 | selection (enabled by default) |
35 | (More) intelligent selection. This extension tries to be more |
35 | (More) intelligent selection. This extension tries to be more |
36 | intelligent when the user extends selections (double-click). Right |
36 | intelligent when the user extends selections (double-click and |
37 | now, it tries to select urls and complete shell-quoted arguments, |
37 | further clicks). Right now, it tries to select words, urls and |
38 | which is very convenient, too, if your ls supports |
38 | complete shell-quoted arguments, which is very convenient, too, if |
39 | "--quoting-style=shell". |
39 | your ls supports "--quoting-style=shell". |
40 | |
40 | |
|
|
41 | A double-click usually selects the word under the cursor, further |
|
|
42 | clicks will enlarge the selection. |
|
|
43 | |
|
|
44 | The selection works by trying to match a number of regexes and |
|
|
45 | displaying them in increasing order of length. You can add your own |
|
|
46 | regexes by specifying resources of the form: |
|
|
47 | |
|
|
48 | URxvt.selection.pattern-0: perl-regex |
|
|
49 | URxvt.selection.pattern-1: perl-regex |
|
|
50 | ... |
|
|
51 | |
|
|
52 | The index number (0, 1...) must not have any holes, and each regex |
|
|
53 | must contain at least one pair of capturing parentheses, which will |
|
|
54 | be used for the match. For example, the followign adds a regex that |
|
|
55 | matches everything between two vertical bars: |
|
|
56 | |
|
|
57 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
|
|
58 | |
|
|
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. |
|
|
61 | |
41 | It also offers the following bindable keyboard command: |
62 | This extension also offers the following bindable keyboard command: |
42 | |
63 | |
43 | rot13 |
64 | rot13 |
44 | Rot-13 the selection when activated. Used via keyboard trigger: |
65 | Rot-13 the selection when activated. Used via keyboard trigger: |
45 | |
66 | |
46 | URxvt.keysym.C-M-r: perl:selection:rot13 |
67 | URxvt.keysym.C-M-r: perl:selection:rot13 |
… | |
… | |
55 | unescaping, perl evalution, web-browser starting etc.), depending on |
76 | unescaping, perl evalution, web-browser starting etc.), depending on |
56 | content. |
77 | content. |
57 | |
78 | |
58 | searchable-scrollback<hotkey> (enabled by default) |
79 | searchable-scrollback<hotkey> (enabled by default) |
59 | Adds regex search functionality to the scrollback buffer, triggered |
80 | Adds regex search functionality to the scrollback buffer, triggered |
60 | by a hotkey (default: "M-s"). When in search mode, normal terminal |
81 | by a hotkey (default: "M-s"). While in search mode, normal terminal |
61 | input/output is suspended. |
82 | input/output is suspended and a regex is displayed at the bottom of |
|
|
83 | the screen. |
62 | |
84 | |
63 | "/" starts an incremental regex search, "n" searches further, "p" or |
85 | Inputting characters appends them to the regex and continues |
64 | "N" jump to the previous match, "G" jumps to the bottom and clears |
86 | incremental search. "BackSpace" removes a character from the regex, |
65 | the history, "enter" leaves search mode at the current position and |
87 | "Up" and "Down" search upwards/downwards in the scrollback buffer, |
66 | "escape" returns to the original position. |
88 | "End" jumps to the bottom. "Escape" leaves search mode and returns |
|
|
89 | to the point where search was started, while "Enter" or "Return" |
|
|
90 | stay at the current position and additionally stores the first match |
|
|
91 | in the current line into the primary selection. |
67 | |
92 | |
68 | digital-clock |
93 | selection-autotransform |
69 | Displays a digital clock using the built-in overlay. |
94 | This selection allows you to do automatic transforms on a selection |
|
|
95 | whenever a selection is made. |
|
|
96 | |
|
|
97 | It works by specifying perl snippets (most useful is a single "s///" |
|
|
98 | operator) that modify $_ as resources: |
|
|
99 | |
|
|
100 | URxvt.selection-autotransform.0: transform |
|
|
101 | URxvt.selection-autotransform.1: transform |
|
|
102 | ... |
|
|
103 | |
|
|
104 | For example, the following will transform selections of the form |
|
|
105 | "filename:number", often seen in compiler messages, into "vi |
|
|
106 | +$filename $word": |
|
|
107 | |
|
|
108 | URxvt.selection-autotransform.0: s/^(\\S+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/ |
|
|
109 | |
|
|
110 | And this example matches the same,but replaces it with vi-commands |
|
|
111 | you can paste directly into your (vi :) editor: |
|
|
112 | |
|
|
113 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
|
|
114 | |
|
|
115 | Of course, this can be modified to suit your needs and your editor |
|
|
116 | :) |
70 | |
117 | |
71 | mark-urls |
118 | mark-urls |
72 | Uses per-line display filtering ("on_line_update") to underline urls |
119 | Uses per-line display filtering ("on_line_update") to underline urls |
73 | and make them clickable. When clicked, the program specified in the |
120 | and make them clickable. When middle-clicked, the program specified |
74 | resource "urlLauncher" (default "x-www-browser") will be started. |
121 | in the resource "urlLauncher" (default "x-www-browser") will be |
|
|
122 | started with the URL as first argument. |
75 | |
123 | |
76 | block-graphics-to-ascii |
124 | block-graphics-to-ascii |
77 | A not very useful example of filtering all text output to the |
125 | A not very useful example of filtering all text output to the |
78 | terminal, by replacing all line-drawing characters (U+2500 .. |
126 | terminal, by replacing all line-drawing characters (U+2500 .. |
79 | U+259F) by a similar-looking ascii character. |
127 | U+259F) by a similar-looking ascii character. |
|
|
128 | |
|
|
129 | digital-clock |
|
|
130 | Displays a digital clock using the built-in overlay. |
80 | |
131 | |
81 | example-refresh-hooks |
132 | example-refresh-hooks |
82 | Displays a very simple digital clock in the upper right corner of |
133 | Displays a very simple digital clock in the upper right corner of |
83 | the window. Illustrates overwriting the refresh callbacks to create |
134 | the window. Illustrates overwriting the refresh callbacks to create |
84 | your own overlays or changes. |
135 | your own overlays or changes. |
… | |
… | |
187 | |
238 | |
188 | on_sel_extend $term |
239 | on_sel_extend $term |
189 | Called whenever the user tries to extend the selection (e.g. with a |
240 | Called whenever the user tries to extend the selection (e.g. with a |
190 | double click) and is either supposed to return false (normal |
241 | double click) and is either supposed to return false (normal |
191 | operation), or should extend the selection itelf and return true to |
242 | operation), or should extend the selection itelf and return true to |
192 | suppress the built-in processing. |
243 | suppress the built-in processing. This can happen multiple times, as |
|
|
244 | long as the callback returns true, it will be called on every |
|
|
245 | further click by the user and is supposed to enlarge the selection |
|
|
246 | more and more, if possible. |
193 | |
247 | |
194 | See the selection example extension. |
248 | See the selection example extension. |
195 | |
249 | |
196 | on_view_change $term, $offset |
250 | on_view_change $term, $offset |
197 | Called whenever the view offset changes, i..e the user or program |
251 | Called whenever the view offset changes, i..e the user or program |
… | |
… | |
472 | ($row, $col) = $term->selection_beg ([$row, $col]) |
526 | ($row, $col) = $term->selection_beg ([$row, $col]) |
473 | ($row, $col) = $term->selection_end ([$row, $col]) |
527 | ($row, $col) = $term->selection_end ([$row, $col]) |
474 | Return the current values of the selection mark, begin or end |
528 | Return the current values of the selection mark, begin or end |
475 | positions, and optionally set them to new values. |
529 | positions, and optionally set them to new values. |
476 | |
530 | |
|
|
531 | $term->selection_make ($eventtime[, $rectangular]) |
|
|
532 | Tries to make a selection as set by "selection_beg" and |
|
|
533 | "selection_end". If $rectangular is true (default: false), a |
|
|
534 | rectangular selection will be made. This is the prefered function to |
|
|
535 | make a selection. |
|
|
536 | |
477 | $success = $term->selection_grab ($eventtime) |
537 | $success = $term->selection_grab ($eventtime) |
478 | Try to request the primary selection from the server (for example, |
538 | Try to request the primary selection text from the server (for |
479 | as set by the next method). |
539 | example, as set by the next method). No visual feedback will be |
|
|
540 | given. This function is mostly useful from within "on_sel_grab" |
|
|
541 | hooks. |
480 | |
542 | |
481 | $oldtext = $term->selection ([$newtext]) |
543 | $oldtext = $term->selection ([$newtext]) |
482 | Return the current selection text and optionally replace it by |
544 | Return the current selection text and optionally replace it by |
483 | $newtext. |
545 | $newtext. |
484 | |
546 | |
… | |
… | |
529 | $string = $term->locale_decode ($octets) |
591 | $string = $term->locale_decode ($octets) |
530 | Convert the given locale-encoded octets into a perl string. |
592 | Convert the given locale-encoded octets into a perl string. |
531 | |
593 | |
532 | $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
594 | $term->scr_xor_span ($beg_row, $beg_col, $end_row, $end_col[, $rstyle]) |
533 | XORs the rendition values in the given span with the provided value |
595 | XORs the rendition values in the given span with the provided value |
534 | (default: "RS_RVid"). Useful in refresh hooks to provide effects |
596 | (default: "RS_RVid"), which *MUST NOT* contain font styles. Useful |
535 | similar to the selection. |
597 | in refresh hooks to provide effects similar to the selection. |
536 | |
598 | |
537 | $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, |
599 | $term->scr_xor_rect ($beg_row, $beg_col, $end_row, $end_col[, $rstyle1[, |
538 | $rstyle2]]) |
600 | $rstyle2]]) |
539 | Similar to "scr_xor_span", but xors a rectangle instead. Trailing |
601 | Similar to "scr_xor_span", but xors a rectangle instead. Trailing |
540 | whitespace will additionally be xored with the $rstyle2, which |
602 | whitespace will additionally be xored with the $rstyle2, which |
541 | defaults to "RS_RVid | RS_Uline", which removes reverse video again |
603 | defaults to "RS_RVid | RS_Uline", which removes reverse video again |
542 | and underlines it instead. |
604 | and underlines it instead. Both styles *MUST NOT* contain font |
|
|
605 | styles. |
543 | |
606 | |
544 | $term->scr_bell |
607 | $term->scr_bell |
545 | Ring the bell! |
608 | Ring the bell! |
546 | |
609 | |
547 | $term->scr_add_lines ($string) |
610 | $term->scr_add_lines ($string) |
… | |
… | |
687 | Return the row number of the first/last row of the line, |
750 | Return the row number of the first/last row of the line, |
688 | respectively. |
751 | respectively. |
689 | |
752 | |
690 | $offset = $line->offset_of ($row, $col) |
753 | $offset = $line->offset_of ($row, $col) |
691 | Returns the character offset of the given row|col pair within |
754 | Returns the character offset of the given row|col pair within |
692 | the logical line. |
755 | the logical line. Works for rows outside the line, too, and |
|
|
756 | returns corresponding offsets outside the string. |
693 | |
757 | |
694 | ($row, $col) = $line->coord_of ($offset) |
758 | ($row, $col) = $line->coord_of ($offset) |
695 | Translates a string offset into terminal coordinates again. |
759 | Translates a string offset into terminal coordinates again. |
696 | |
760 | |
697 | $text = $term->special_encode $string |
761 | $text = $term->special_encode $string |
… | |
… | |
827 | This variable controls the verbosity level of the perl extension. Higher |
891 | This variable controls the verbosity level of the perl extension. Higher |
828 | numbers indicate more verbose output. |
892 | numbers indicate more verbose output. |
829 | |
893 | |
830 | == 0 - fatal messages |
894 | == 0 - fatal messages |
831 | >= 3 - script loading and management |
895 | >= 3 - script loading and management |
832 | >=10 - all events received |
896 | >=10 - all called hooks |
|
|
897 | >=11 - hook reutrn values |
833 | |
898 | |
834 | AUTHOR |
899 | AUTHOR |
835 | Marc Lehmann <pcg@goof.com> |
900 | Marc Lehmann <pcg@goof.com> |
836 | http://software.schmorp.de/pkg/rxvt-unicode |
901 | http://software.schmorp.de/pkg/rxvt-unicode |
837 | |
902 | |