… | |
… | |
57 | must contain at least one pair of capturing parentheses, which will |
57 | must contain at least one pair of capturing parentheses, which will |
58 | be used for the match. For example, the followign adds a regex that |
58 | be used for the match. For example, the followign adds a regex that |
59 | matches everything between two vertical bars: |
59 | matches everything between two vertical bars: |
60 | |
60 | |
61 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
61 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
|
|
62 | |
|
|
63 | Another example: Programs I use often output "absolute path: " at |
|
|
64 | the beginning of a line when they process multiple files. The |
|
|
65 | following pattern matches the filename (note, there is a single |
|
|
66 | space at the very end): |
|
|
67 | |
|
|
68 | URxvt.selection.pattern-0: ^(/[^:]+):\ |
62 | |
69 | |
63 | You can look at the source of the selection extension to see more |
70 | You can look at the source of the selection extension to see more |
64 | interesting uses, such as parsing a line from beginning to end. |
71 | interesting uses, such as parsing a line from beginning to end. |
65 | |
72 | |
66 | This extension also offers following bindable keyboard commands: |
73 | This extension also offers following bindable keyboard commands: |
… | |
… | |
182 | Uses per-line display filtering ("on_line_update") to underline urls |
189 | Uses per-line display filtering ("on_line_update") to underline urls |
183 | and make them clickable. When middle-clicked, the program specified |
190 | and make them clickable. When middle-clicked, the program specified |
184 | in the resource "urlLauncher" (default "x-www-browser") will be |
191 | in the resource "urlLauncher" (default "x-www-browser") will be |
185 | started with the URL as first argument. |
192 | started with the URL as first argument. |
186 | |
193 | |
|
|
194 | xim-onthespot |
|
|
195 | This (experimental) perl extension implements OnTheSpot editing. It |
|
|
196 | does not work perfectly, and some input methods don't seem to work |
|
|
197 | well with OnTheSpot editing in general, but it seems to work at |
|
|
198 | leats for SCIM and kinput2. |
|
|
199 | |
|
|
200 | You enable it by specifying this extension and a preedit style of |
|
|
201 | "OnTheSpot", i.e.: |
|
|
202 | |
|
|
203 | rxvt -pt OnTheSpot -pe xim-onthespot |
|
|
204 | |
187 | automove-background |
205 | automove-background |
188 | This is basically a one-line extension that dynamically changes the |
206 | This is basically a one-line extension that dynamically changes the |
189 | background pixmap offset to the window position, in effect creating |
207 | background pixmap offset to the window position, in effect creating |
190 | the same effect as pseudo transparency with a custom pixmap. No |
208 | the same effect as pseudo transparency with a custom pixmap. No |
191 | scaling is supported in this mode. Exmaple: |
209 | scaling is supported in this mode. Exmaple: |
… | |
… | |
313 | Called at the very end of initialisation of a new terminal, just |
331 | Called at the very end of initialisation of a new terminal, just |
314 | before trying to map (display) the toplevel and returning to the |
332 | before trying to map (display) the toplevel and returning to the |
315 | mainloop. |
333 | mainloop. |
316 | |
334 | |
317 | on_destroy $term |
335 | on_destroy $term |
318 | Called whenever something tries to destroy terminal, before doing |
336 | Called whenever something tries to destroy terminal, when the |
319 | anything yet. If this hook returns true, then destruction is |
337 | terminal is still fully functional (not for long, though). |
320 | skipped, but this is rarely a good idea. |
|
|
321 | |
338 | |
322 | on_reset $term |
339 | on_reset $term |
323 | Called after the screen is "reset" for any reason, such as resizing |
340 | Called after the screen is "reset" for any reason, such as resizing |
324 | or control sequences. Here is where you can react on changes to |
341 | or control sequences. Here is where you can react on changes to |
325 | size-related variables. |
342 | size-related variables. |