… | |
… | |
112 | |
112 | |
113 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
113 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
114 | |
114 | |
115 | Of course, this can be modified to suit your needs and your editor |
115 | Of course, this can be modified to suit your needs and your editor |
116 | :) |
116 | :) |
|
|
117 | |
|
|
118 | To expand the example above to typical perl error messages ("XXX at |
|
|
119 | FILENAME line YYY."), you need a slightly more elaborate solution: |
|
|
120 | |
|
|
121 | URxvt.selection.pattern-0: ( at .*? line \\d+\\.) |
|
|
122 | URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)\\.$/\x1b:e \\Q$1\E\\x0d:$2\\x0d/ |
|
|
123 | |
|
|
124 | The first line tells the selection code to treat the unchanging part |
|
|
125 | of every error message as a selection pattern, and the second line |
|
|
126 | transforms the message into vi commands to load the file. |
117 | |
127 | |
118 | mark-urls |
128 | mark-urls |
119 | Uses per-line display filtering ("on_line_update") to underline urls |
129 | Uses per-line display filtering ("on_line_update") to underline urls |
120 | and make them clickable. When middle-clicked, the program specified |
130 | and make them clickable. When middle-clicked, the program specified |
121 | in the resource "urlLauncher" (default "x-www-browser") will be |
131 | in the resource "urlLauncher" (default "x-www-browser") will be |