… | |
… | |
117 | URxvt.selection-autotransform.0: transform |
117 | URxvt.selection-autotransform.0: transform |
118 | URxvt.selection-autotransform.1: transform |
118 | URxvt.selection-autotransform.1: transform |
119 | ... |
119 | ... |
120 | |
120 | |
121 | For example, the following will transform selections of the form |
121 | For example, the following will transform selections of the form |
122 | C<word:number> into C<vi +$number $word>: |
122 | C<filename:number>, often seen in compiler messages, into C<vi +$filename |
|
|
123 | $word>: |
123 | |
124 | |
124 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/vi +$2 $1\\x0d/ |
125 | URxvt.selection-autotransform.0: s/^(\\S+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/ |
125 | |
126 | |
126 | And this example matches the same,but replaces it with vi-commands you can |
127 | And this example matches the same,but replaces it with vi-commands you can |
127 | paste directory into your (vi :) editor: |
128 | paste directly into your (vi :) editor: |
128 | |
129 | |
129 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e $1\\x0d:$2\\x0d/ |
130 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
|
|
131 | |
|
|
132 | Of course, this can be modified to suit your needs and your editor :) |
130 | |
133 | |
131 | =item mark-urls |
134 | =item mark-urls |
132 | |
135 | |
133 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
136 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
134 | make them clickable. When middle-clicked, the program specified in the |
137 | make them clickable. When middle-clicked, the program specified in the |