… | |
… | |
195 | was started, while <code>Enter</code> or <code>Return</code> stay at the current position and |
195 | was started, while <code>Enter</code> or <code>Return</code> stay at the current position and |
196 | additionally stores the first match in the current line into the primary |
196 | additionally stores the first match in the current line into the primary |
197 | selection.</p> |
197 | selection.</p> |
198 | </dd> |
198 | </dd> |
199 | <p></p> |
199 | <p></p> |
200 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
|
|
201 | </dt> |
|
|
202 | <dd> |
|
|
203 | This selection allows you to do automatic transforms on a selection |
|
|
204 | whenever a selection is made. |
|
|
205 | </dd> |
|
|
206 | <dd> |
|
|
207 | <p>It works by specifying perl snippets (most useful is a single <code>s///</code> |
|
|
208 | operator) that modify <code>$_</code> as resources:</p> |
|
|
209 | </dd> |
|
|
210 | <dd> |
|
|
211 | <pre> |
|
|
212 | URxvt.selection-autotransform.0: transform |
|
|
213 | URxvt.selection-autotransform.1: transform |
|
|
214 | ...</pre> |
|
|
215 | </dd> |
|
|
216 | <dd> |
|
|
217 | <p>For example, the following will transform selections of the form |
|
|
218 | <code>filename:number</code>, often seen in compiler messages, into <code>vi +$filename |
|
|
219 | $word</code>:</p> |
|
|
220 | </dd> |
|
|
221 | <dd> |
|
|
222 | <pre> |
|
|
223 | URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/</pre> |
|
|
224 | </dd> |
|
|
225 | <dd> |
|
|
226 | <p>And this example matches the same,but replaces it with vi-commands you can |
|
|
227 | paste directly into your (vi :) editor:</p> |
|
|
228 | </dd> |
|
|
229 | <dd> |
|
|
230 | <pre> |
|
|
231 | URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\\d+):?$/:e \\Q$1\\E\\x0d:$2\\x0d/</pre> |
|
|
232 | </dd> |
|
|
233 | <dd> |
|
|
234 | <p>Of course, this can be modified to suit your needs and your editor :)</p> |
|
|
235 | </dd> |
|
|
236 | <dd> |
|
|
237 | <p>To expand the example above to typical perl error messages (``XXX at |
|
|
238 | FILENAME line YYY.''), you need a slightly more elaborate solution:</p> |
|
|
239 | </dd> |
|
|
240 | <dd> |
|
|
241 | <pre> |
|
|
242 | URxvt.selection.pattern-0: ( at .*? line \\d+[,.]) |
|
|
243 | URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)[,.]$/:e \\Q$1\E\\x0d:$2\\x0d/</pre> |
|
|
244 | </dd> |
|
|
245 | <dd> |
|
|
246 | <p>The first line tells the selection code to treat the unchanging part of |
|
|
247 | every error message as a selection pattern, and the second line transforms |
|
|
248 | the message into vi commands to load the file.</p> |
|
|
249 | </dd> |
|
|
250 | <p></p> |
|
|
251 | <dt><strong><a name="item_readline">readline</a></strong><br /> |
200 | <dt><strong><a name="item_readline">readline (enabled by default)</a></strong><br /> |
252 | </dt> |
201 | </dt> |
253 | <dd> |
202 | <dd> |
254 | A support package that tries to make editing with readline easier. At the |
203 | A support package that tries to make editing with readline easier. At the |
255 | moment, it reacts to clicking with the left mouse button by trying to |
204 | moment, it reacts to clicking with the left mouse button by trying to |
256 | move the text cursor to this position. It does so by generating as many |
205 | move the text cursor to this position. It does so by generating as many |
257 | cursor-left or cursor-right keypresses as required (the this only works |
206 | cursor-left or cursor-right keypresses as required (the this only works |
258 | for programs that correctly support wide characters). |
207 | for programs that correctly support wide characters). |
259 | </dd> |
208 | </dd> |
260 | <dd> |
209 | <dd> |
261 | <p>It only works when clicking into the same line (possibly extended over |
210 | <p>To avoid too many false positives, this is only done when:</p> |
262 | multiple rows) as the text cursor and on the primary screen, to reduce the |
211 | </dd> |
263 | risk of misinterpreting. The normal selection isn't disabled, so quick |
212 | <dl> |
|
|
213 | <dt><strong><a name="item_same">- the mouse is on the same (multi-row-) line as the text cursor.</a></strong><br /> |
|
|
214 | </dt> |
|
|
215 | <dt><strong><a name="item__2d_the_primary_screen_is_currently_being_displaye">- the primary screen is currently being displayed.</a></strong><br /> |
|
|
216 | </dt> |
|
|
217 | <dt><strong><a name="item__2d_the_text_cursor_is_visible_2e">- the text cursor is visible.</a></strong><br /> |
|
|
218 | </dt> |
|
|
219 | </dl> |
|
|
220 | <p>The normal selection mechanism isn't disabled, so quick successive clicks |
264 | successive clicks might interfere with selection creation in harmless |
221 | might interfere with selection creation in harmless ways.</p> |
265 | ways.</p> |
222 | <dt><strong><a name="item_selection_2dautotransform">selection-autotransform</a></strong><br /> |
|
|
223 | </dt> |
|
|
224 | <dd> |
|
|
225 | This selection allows you to do automatic transforms on a selection |
|
|
226 | whenever a selection is made. |
|
|
227 | </dd> |
|
|
228 | <dd> |
|
|
229 | <p>It works by specifying perl snippets (most useful is a single <code>s///</code> |
|
|
230 | operator) that modify <code>$_</code> as resources:</p> |
|
|
231 | </dd> |
|
|
232 | <dd> |
|
|
233 | <pre> |
|
|
234 | URxvt.selection-autotransform.0: transform |
|
|
235 | URxvt.selection-autotransform.1: transform |
|
|
236 | ...</pre> |
|
|
237 | </dd> |
|
|
238 | <dd> |
|
|
239 | <p>For example, the following will transform selections of the form |
|
|
240 | <code>filename:number</code>, often seen in compiler messages, into <code>vi +$filename |
|
|
241 | $word</code>:</p> |
|
|
242 | </dd> |
|
|
243 | <dd> |
|
|
244 | <pre> |
|
|
245 | URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/</pre> |
|
|
246 | </dd> |
|
|
247 | <dd> |
|
|
248 | <p>And this example matches the same,but replaces it with vi-commands you can |
|
|
249 | paste directly into your (vi :) editor:</p> |
|
|
250 | </dd> |
|
|
251 | <dd> |
|
|
252 | <pre> |
|
|
253 | URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\\d+):?$/:e \\Q$1\\E\\x0d:$2\\x0d/</pre> |
|
|
254 | </dd> |
|
|
255 | <dd> |
|
|
256 | <p>Of course, this can be modified to suit your needs and your editor :)</p> |
|
|
257 | </dd> |
|
|
258 | <dd> |
|
|
259 | <p>To expand the example above to typical perl error messages (``XXX at |
|
|
260 | FILENAME line YYY.''), you need a slightly more elaborate solution:</p> |
|
|
261 | </dd> |
|
|
262 | <dd> |
|
|
263 | <pre> |
|
|
264 | URxvt.selection.pattern-0: ( at .*? line \\d+[,.]) |
|
|
265 | URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)[,.]$/:e \\Q$1\E\\x0d:$2\\x0d/</pre> |
|
|
266 | </dd> |
|
|
267 | <dd> |
|
|
268 | <p>The first line tells the selection code to treat the unchanging part of |
|
|
269 | every error message as a selection pattern, and the second line transforms |
|
|
270 | the message into vi commands to load the file.</p> |
266 | </dd> |
271 | </dd> |
267 | <p></p> |
272 | <p></p> |
268 | <dt><strong><a name="item_tabbed">tabbed</a></strong><br /> |
273 | <dt><strong><a name="item_tabbed">tabbed</a></strong><br /> |
269 | </dt> |
274 | </dt> |
270 | <dd> |
275 | <dd> |
… | |
… | |
1279 | </dt> |
1284 | </dt> |
1280 | <dd> |
1285 | <dd> |
1281 | Returns the currently displayed screen (0 primary, 1 secondary). |
1286 | Returns the currently displayed screen (0 primary, 1 secondary). |
1282 | </dd> |
1287 | </dd> |
1283 | <p></p> |
1288 | <p></p> |
|
|
1289 | <dt><strong><a name="item_hidden_cursor">$cursor_is_hidden = $term->hidden_cursor</a></strong><br /> |
|
|
1290 | </dt> |
|
|
1291 | <dd> |
|
|
1292 | Returns wether the cursor is currently hidden or not. |
|
|
1293 | </dd> |
|
|
1294 | <p></p> |
1284 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1295 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1285 | </dt> |
1296 | </dt> |
1286 | <dd> |
1297 | <dd> |
1287 | Returns the row number of the topmost displayed line. Maximum value is |
1298 | Returns the row number of the topmost displayed line. Maximum value is |
1288 | <code>0</code>, which displays the normal terminal contents. Lower values scroll |
1299 | <code>0</code>, which displays the normal terminal contents. Lower values scroll |