ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.97 by elmex, Tue Jan 17 16:53:47 2006 UTC vs.
Revision 1.98 by root, Tue Jan 17 17:01:54 2006 UTC

164window. Illustrates overwriting the refresh callbacks to create your own 164window. Illustrates overwriting the refresh callbacks to create your own
165overlays or changes. 165overlays or changes.
166 166
167=item selection-pastebin 167=item selection-pastebin
168 168
169Uploads the selection as textfile to a remote site. 169This is a little rarely useful extension that Uploads the selection as
170textfile to a remote site (or does other things).
171
172It listens to the C<selection-pastebin:remote-pastebin> keyboard command,
173i.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
173To set the command to upload the file set this resource: 177Pressing this combination runs a command with C<%> replaced by the name of
178the 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
177The % is the placeholder for the textfile. The name of the textfile is the hex encoded 182And the default is likely not useful to anybody but the few people around
178md5 sum of the selection. 183here :)
184
185The name of the textfile is the hex encoded md5 sum of the selection, so
186the same content should lead to the same filename.
187
179After an successful upload the selection will be replaced by the following url 188After a successful upload the selection will be replaced by the text given
180(the % is the placeholder for the filename): 189in the C<selection-pastebin-url> resource (again, the % is the placeholder
190for 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines