… | |
… | |
128 | paste directly into your (vi :) editor: |
128 | paste directly into your (vi :) editor: |
129 | |
129 | |
130 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
130 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
131 | |
131 | |
132 | Of course, this can be modified to suit your needs and your editor :) |
132 | Of course, this can be modified to suit your needs and your editor :) |
|
|
133 | |
|
|
134 | To expand the example above to typical perl error messages ("XXX at |
|
|
135 | FILENAME line YYY."), you need a slightly more elaborate solution: |
|
|
136 | |
|
|
137 | URxvt.selection.pattern-0: ( at .*? line \\d+\\.) |
|
|
138 | URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)\\.$/\x1b:e \\Q$1\E\\x0d:$2\\x0d/ |
|
|
139 | |
|
|
140 | The first line tells the selection code to treat the unchanging part of |
|
|
141 | every error message as a selection pattern, and the second line transforms |
|
|
142 | the message into vi commands to load the file. |
133 | |
143 | |
134 | =item mark-urls |
144 | =item mark-urls |
135 | |
145 | |
136 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
146 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
137 | make them clickable. When middle-clicked, the program specified in the |
147 | make them clickable. When middle-clicked, the program specified in the |