… | |
… | |
132 | </dd> |
132 | </dd> |
133 | <dd> |
133 | <dd> |
134 | <pre> |
134 | <pre> |
135 | URxvt.keysym.C-M-r: perl:selection:rot13</pre> |
135 | URxvt.keysym.C-M-r: perl:selection:rot13</pre> |
136 | </dd> |
136 | </dd> |
137 | <p></p> |
|
|
138 | <dt><strong><a name="item_remote_2dpastebin">remote-pastebin</a></strong><br /> |
|
|
139 | </dt> |
|
|
140 | <dd> |
|
|
141 | Upload the selection as textfile to a remote site. |
|
|
142 | </dd> |
|
|
143 | <dd> |
|
|
144 | <pre> |
|
|
145 | URxvt.keysym.C-M-e: perl:selection:remote-pastebin</pre> |
|
|
146 | </dd> |
|
|
147 | <dd> |
|
|
148 | <p>To set the command to upload the file set this resource:</p> |
|
|
149 | </dd> |
|
|
150 | <dd> |
|
|
151 | <pre> |
|
|
152 | URxvt.selection-pastebin-cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.</pre> |
|
|
153 | </dd> |
|
|
154 | <dd> |
|
|
155 | <p>The % is the placeholder for the textfile. The name of the textfile is the hex encoded |
|
|
156 | md5 sum of the selection. |
|
|
157 | After an successful upload the selection will be replaced by the following url |
|
|
158 | (the % is the placeholder for the filename):</p> |
|
|
159 | </dd> |
|
|
160 | <dd> |
|
|
161 | <pre> |
|
|
162 | URxvt.selection-pastebin-url: <a href="http://www.ta-sa.org/files/txt/%">http://www.ta-sa.org/files/txt/%</a></pre> |
|
|
163 | </dd> |
|
|
164 | <p></p></dl> |
137 | <p></p></dl> |
165 | <dt><strong><a name="item_popup">option-popup (enabled by default)</a></strong><br /> |
138 | <dt><strong><a name="item_popup">option-popup (enabled by default)</a></strong><br /> |
166 | </dt> |
139 | </dt> |
167 | <dd> |
140 | <dd> |
168 | Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at |
141 | Binds a popup menu to Ctrl-Button2 that lets you toggle (some) options at |
… | |
… | |
273 | </dt> |
246 | </dt> |
274 | <dd> |
247 | <dd> |
275 | Displays a very simple digital clock in the upper right corner of the |
248 | Displays a very simple digital clock in the upper right corner of the |
276 | window. Illustrates overwriting the refresh callbacks to create your own |
249 | window. Illustrates overwriting the refresh callbacks to create your own |
277 | overlays or changes. |
250 | overlays or changes. |
|
|
251 | </dd> |
|
|
252 | <p></p> |
|
|
253 | <dt><strong><a name="item_selection_2dpastebin">selection-pastebin</a></strong><br /> |
|
|
254 | </dt> |
|
|
255 | <dd> |
|
|
256 | This is a little rarely useful extension that Uploads the selection as |
|
|
257 | textfile to a remote site (or does other things). (The implementation is |
|
|
258 | not currently secure for use in a multiuser environment as it writes to |
|
|
259 | <em>/tmp</em> directly.). |
|
|
260 | </dd> |
|
|
261 | <dd> |
|
|
262 | <p>It listens to the <code>selection-pastebin:remote-pastebin</code> keyboard command, |
|
|
263 | i.e.</p> |
|
|
264 | </dd> |
|
|
265 | <dd> |
|
|
266 | <pre> |
|
|
267 | URxvt.keysym.C-M-e: perl:selection-pastebin:remote-pastebin</pre> |
|
|
268 | </dd> |
|
|
269 | <dd> |
|
|
270 | <p>Pressing this combination runs a command with <code>%</code> replaced by the name of |
|
|
271 | the textfile. This command can be set via a resource:</p> |
|
|
272 | </dd> |
|
|
273 | <dd> |
|
|
274 | <pre> |
|
|
275 | URxvt.selection-pastebin.cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.</pre> |
|
|
276 | </dd> |
|
|
277 | <dd> |
|
|
278 | <p>And the default is likely not useful to anybody but the few people around |
|
|
279 | here :)</p> |
|
|
280 | </dd> |
|
|
281 | <dd> |
|
|
282 | <p>The name of the textfile is the hex encoded md5 sum of the selection, so |
|
|
283 | the same content should lead to the same filename.</p> |
|
|
284 | </dd> |
|
|
285 | <dd> |
|
|
286 | <p>After a successful upload the selection will be replaced by the text given |
|
|
287 | in the <code>selection-pastebin-url</code> resource (again, the % is the placeholder |
|
|
288 | for the filename):</p> |
|
|
289 | </dd> |
|
|
290 | <dd> |
|
|
291 | <pre> |
|
|
292 | URxvt.selection-pastebin.url: <a href="http://www.ta-sa.org/files/txt/%">http://www.ta-sa.org/files/txt/%</a></pre> |
278 | </dd> |
293 | </dd> |
279 | <p></p></dl> |
294 | <p></p></dl> |
280 | <p> |
295 | <p> |
281 | </p> |
296 | </p> |
282 | <hr /> |
297 | <hr /> |