--- rxvt-unicode/doc/rxvtperl.3.html 2006/01/12 12:10:06 1.26 +++ rxvt-unicode/doc/rxvtperl.3.html 2006/01/17 16:22:41 1.31 @@ -122,7 +122,7 @@ interesting uses, such as parsing a line from beginning to end.
This extension also offers the following bindable keyboard command:
+This extension also offers following bindable keyboard commands:
URxvt.keysym.C-M-r: perl:selection:rot13+ +
+ URxvt.keysym.C-M-e: perl:selection:remote-pastebin+
To set the command to upload the file set this resource:
++ URxvt.selection-pastebin-cmd: rsync -apP % ruth:/var/www/www.ta-sa.org/files/txt/.+
The % is the placeholder for the textfile. The name of the textfile is the hex encoded +md5 sum of the selection. +After an successful upload the selection will be replaced by the following url +(the % is the placeholder for the filename):
++ URxvt.selection-pastebin-url: http://www.ta-sa.org/files/txt/%+
- URxvt.selection-autotransform.0: s/^(\\S+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/+ URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/
And this example matches the same,but replaces it with vi-commands you can @@ -199,7 +226,24 @@
- URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/+ URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\\d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/ +
Of course, this can be modified to suit your needs and your editor :)
+To expand the example above to typical perl error messages (``XXX at +FILENAME line YYY.''), you need a slightly more elaborate solution:
++ URxvt.selection.pattern-0: ( at .*? line \\d+\\.) + URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)\\.$/\x1b:e \\Q$1\E\\x0d:$2\\x0d/+
The first line tells the selection code to treat the unchanging part of +every error message as a selection pattern, and the second line transforms +the message into vi commands to load the file.
rxvt(1)
manpage).
+Messages have a size limit of 1023 bytes currently.
+ $term->vt_emask_add (urxvt::PointerMotionMask);+
0
, which displays the normal terminal contents. Larger values scroll
+Returns the row number of the topmost displayed line. Maximum value is
+0
, which displays the normal terminal contents. Lower values scroll
this many lines into the scrollback buffer.
$row_number
. Row 0
is the topmost terminal line, row $term->$ncol-1
is the bottommost
terminal line. The scrollback buffer starts at line -1
and extends to
-line -$term->nsaved
. Nothing will be returned if a nonexistent line
+line -$term->nsaved
. Nothing will be returned if a nonexistent line
is requested.