… | |
… | |
164 | window. Illustrates overwriting the refresh callbacks to create your own |
164 | window. Illustrates overwriting the refresh callbacks to create your own |
165 | overlays or changes. |
165 | overlays or changes. |
166 | |
166 | |
167 | =item selection-pastebin |
167 | =item selection-pastebin |
168 | |
168 | |
169 | Uploads the selection as textfile to a remote site. |
169 | This is a little rarely useful extension that Uploads the selection as |
|
|
170 | textfile to a remote site (or does other things). |
|
|
171 | |
|
|
172 | It listens to the C<selection-pastebin:remote-pastebin> keyboard command, |
|
|
173 | i.e. |
170 | |
174 | |
171 | URxvt.keysym.C-M-e: perl:selection-pastebin:remote-pastebin |
175 | URxvt.keysym.C-M-e: perl:selection-pastebin:remote-pastebin |
172 | |
176 | |
173 | To set the command to upload the file set this resource: |
177 | Pressing this combination runs a command with C<%> replaced by the name of |
|
|
178 | the textfile. This command can be set via a resource: |
174 | |
179 | |
175 | URxvt.selection-pastebin-cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/. |
180 | URxvt.selection-pastebin.cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/. |
176 | |
181 | |
177 | The % is the placeholder for the textfile. The name of the textfile is the hex encoded |
182 | And the default is likely not useful to anybody but the few people around |
178 | md5 sum of the selection. |
183 | here :) |
|
|
184 | |
|
|
185 | The name of the textfile is the hex encoded md5 sum of the selection, so |
|
|
186 | the same content should lead to the same filename. |
|
|
187 | |
179 | After an successful upload the selection will be replaced by the following url |
188 | After a successful upload the selection will be replaced by the text given |
180 | (the % is the placeholder for the filename): |
189 | in the C<selection-pastebin-url> resource (again, the % is the placeholder |
|
|
190 | for the filename): |
181 | |
191 | |
182 | URxvt.selection-pastebin-url: http://www.ta-sa.org/files/txt/% |
192 | URxvt.selection-pastebin.url: http://www.ta-sa.org/files/txt/% |
183 | |
193 | |
184 | =back |
194 | =back |
185 | |
195 | |
186 | =head1 API DOCUMENTATION |
196 | =head1 API DOCUMENTATION |
187 | |
197 | |