… | |
… | |
39 | your ls supports "--quoting-style=shell". |
39 | your ls supports "--quoting-style=shell". |
40 | |
40 | |
41 | A double-click usually selects the word under the cursor, further |
41 | A double-click usually selects the word under the cursor, further |
42 | clicks will enlarge the selection. |
42 | clicks will enlarge the selection. |
43 | |
43 | |
|
|
44 | The selection works by trying to match a number of regexes and |
|
|
45 | displaying them in increasing order of length. You can add your own |
|
|
46 | regexes by specifying resources of the form: |
|
|
47 | |
|
|
48 | URxvt.selection.pattern-0: perl-regex |
|
|
49 | URxvt.selection.pattern-1: perl-regex |
|
|
50 | ... |
|
|
51 | |
|
|
52 | The index number (0, 1...) must not have any holes, and each regex |
|
|
53 | must contain at least one pair of capturing parentheses, which will |
|
|
54 | be used for the match. For example, the followign adds a regex that |
|
|
55 | matches everything between two vertical bars: |
|
|
56 | |
|
|
57 | URxvt.selection.pattern-0: \\|([^|]+)\\| |
|
|
58 | |
|
|
59 | You can look at the source of the selection extension to see more |
|
|
60 | interesting uses, such as parsing a line from beginning to end. |
|
|
61 | |
44 | It also offers the following bindable keyboard command: |
62 | This extension also offers the following bindable keyboard command: |
45 | |
63 | |
46 | rot13 |
64 | rot13 |
47 | Rot-13 the selection when activated. Used via keyboard trigger: |
65 | Rot-13 the selection when activated. Used via keyboard trigger: |
48 | |
66 | |
49 | URxvt.keysym.C-M-r: perl:selection:rot13 |
67 | URxvt.keysym.C-M-r: perl:selection:rot13 |
… | |
… | |
70 | "End" jumps to the bottom. "Escape" leaves search mode and returns |
88 | "End" jumps to the bottom. "Escape" leaves search mode and returns |
71 | to the point where search was started, while "Enter" or "Return" |
89 | to the point where search was started, while "Enter" or "Return" |
72 | stay at the current position and additionally stores the first match |
90 | stay at the current position and additionally stores the first match |
73 | in the current line into the primary selection. |
91 | in the current line into the primary selection. |
74 | |
92 | |
75 | digital-clock |
93 | selection-autotransform |
76 | Displays a digital clock using the built-in overlay. |
94 | This selection allows you to do automatic transforms on a selection |
|
|
95 | whenever a selection is made. |
|
|
96 | |
|
|
97 | It works by specifying perl snippets (most useful is a single "s///" |
|
|
98 | operator) that modify $_ as resources: |
|
|
99 | |
|
|
100 | URxvt.selection-autotransform.0: transform |
|
|
101 | URxvt.selection-autotransform.1: transform |
|
|
102 | ... |
|
|
103 | |
|
|
104 | For example, the following will transform selections of the form |
|
|
105 | "filename:number", often seen in compiler messages, into "vi |
|
|
106 | +$filename $word": |
|
|
107 | |
|
|
108 | URxvt.selection-autotransform.0: s/^(\\S+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/ |
|
|
109 | |
|
|
110 | And this example matches the same,but replaces it with vi-commands |
|
|
111 | you can paste directly into your (vi :) editor: |
|
|
112 | |
|
|
113 | URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ |
77 | |
114 | |
78 | mark-urls |
115 | mark-urls |
79 | Uses per-line display filtering ("on_line_update") to underline urls |
116 | Uses per-line display filtering ("on_line_update") to underline urls |
80 | and make them clickable. When middle-clicked, the program specified |
117 | and make them clickable. When middle-clicked, the program specified |
81 | in the resource "urlLauncher" (default "x-www-browser") will be |
118 | in the resource "urlLauncher" (default "x-www-browser") will be |
… | |
… | |
83 | |
120 | |
84 | block-graphics-to-ascii |
121 | block-graphics-to-ascii |
85 | A not very useful example of filtering all text output to the |
122 | A not very useful example of filtering all text output to the |
86 | terminal, by replacing all line-drawing characters (U+2500 .. |
123 | terminal, by replacing all line-drawing characters (U+2500 .. |
87 | U+259F) by a similar-looking ascii character. |
124 | U+259F) by a similar-looking ascii character. |
|
|
125 | |
|
|
126 | digital-clock |
|
|
127 | Displays a digital clock using the built-in overlay. |
88 | |
128 | |
89 | example-refresh-hooks |
129 | example-refresh-hooks |
90 | Displays a very simple digital clock in the upper right corner of |
130 | Displays a very simple digital clock in the upper right corner of |
91 | the window. Illustrates overwriting the refresh callbacks to create |
131 | the window. Illustrates overwriting the refresh callbacks to create |
92 | your own overlays or changes. |
132 | your own overlays or changes. |