ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvtperl.3.man.in
(Generate patch)

Comparing rxvt-unicode/doc/rxvtperl.3.man.in (file contents):
Revision 1.25 by root, Thu Jan 12 05:37:34 2006 UTC vs.
Revision 1.26 by root, Thu Jan 12 12:10:06 2006 UTC

181\&\f(CW\*(C`\-\-quoting\-style=shell\*(C'\fR. 181\&\f(CW\*(C`\-\-quoting\-style=shell\*(C'\fR.
182.Sp 182.Sp
183A double-click usually selects the word under the cursor, further clicks 183A double-click usually selects the word under the cursor, further clicks
184will enlarge the selection. 184will enlarge the selection.
185.Sp 185.Sp
186The selection works by trying to match a number of regexes and displaying
187them in increasing order of length. You can add your own regexes by
188specifying resources of the form:
189.Sp
190.Vb 3
191\& URxvt.selection.pattern-0: perl-regex
192\& URxvt.selection.pattern-1: perl-regex
193\& ...
194.Ve
195.Sp
196The index number (0, 1...) must not have any holes, and each regex must
197contain at least one pair of capturing parentheses, which will be used for
198the match. For example, the followign adds a regex that matches everything
199between two vertical bars:
200.Sp
201.Vb 1
202\& URxvt.selection.pattern-0: \e\e|([^|]+)\e\e|
203.Ve
204.Sp
205You can look at the source of the selection extension to see more
206interesting uses, such as parsing a line from beginning to end.
207.Sp
186It also offers the following bindable keyboard command: 208This extension also offers the following bindable keyboard command:
187.RS 4 209.RS 4
188.IP "rot13" 4 210.IP "rot13" 4
189.IX Item "rot13" 211.IX Item "rot13"
190Rot\-13 the selection when activated. Used via keyboard trigger: 212Rot\-13 the selection when activated. Used via keyboard trigger:
191.Sp 213.Sp
216search upwards/downwards in the scrollback buffer, \f(CW\*(C`End\*(C'\fR jumps to the 238search upwards/downwards in the scrollback buffer, \f(CW\*(C`End\*(C'\fR jumps to the
217bottom. \f(CW\*(C`Escape\*(C'\fR leaves search mode and returns to the point where search 239bottom. \f(CW\*(C`Escape\*(C'\fR leaves search mode and returns to the point where search
218was started, while \f(CW\*(C`Enter\*(C'\fR or \f(CW\*(C`Return\*(C'\fR stay at the current position and 240was started, while \f(CW\*(C`Enter\*(C'\fR or \f(CW\*(C`Return\*(C'\fR stay at the current position and
219additionally stores the first match in the current line into the primary 241additionally stores the first match in the current line into the primary
220selection. 242selection.
221.IP "digital-clock" 4 243.IP "selection-autotransform" 4
222.IX Item "digital-clock" 244.IX Item "selection-autotransform"
223Displays a digital clock using the built-in overlay. 245This selection allows you to do automatic transforms on a selection
246whenever a selection is made.
247.Sp
248It works by specifying perl snippets (most useful is a single \f(CW\*(C`s///\*(C'\fR
249operator) that modify \f(CW$_\fR as resources:
250.Sp
251.Vb 3
252\& URxvt.selection-autotransform.0: transform
253\& URxvt.selection-autotransform.1: transform
254\& ...
255.Ve
256.Sp
257For example, the following will transform selections of the form
258\&\f(CW\*(C`filename:number\*(C'\fR, often seen in compiler messages, into \f(CW\*(C`vi +$filename
259$word\*(C'\fR:
260.Sp
261.Vb 1
262\& URxvt.selection-autotransform.0: s/^(\e\eS+):(\e\ed+):?$/vi +$2 \e\eQ$1\e\eE\e\ex0d/
263.Ve
264.Sp
265And this example matches the same,but replaces it with vi-commands you can
266paste directly into your (vi :) editor:
267.Sp
268.Vb 1
269\& URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\e\ex1b:e \e\eQ$1\e\eE\e\ex0d:$2\e\ex0d/
270.Ve
224.IP "mark-urls" 4 271.IP "mark-urls" 4
225.IX Item "mark-urls" 272.IX Item "mark-urls"
226Uses per-line display filtering (\f(CW\*(C`on_line_update\*(C'\fR) to underline urls and 273Uses per-line display filtering (\f(CW\*(C`on_line_update\*(C'\fR) to underline urls and
227make them clickable. When middle\-clicked, the program specified in the 274make them clickable. When middle\-clicked, the program specified in the
228resource \f(CW\*(C`urlLauncher\*(C'\fR (default \f(CW\*(C`x\-www\-browser\*(C'\fR) will be started with 275resource \f(CW\*(C`urlLauncher\*(C'\fR (default \f(CW\*(C`x\-www\-browser\*(C'\fR) will be started with
230.IP "block-graphics-to-ascii" 4 277.IP "block-graphics-to-ascii" 4
231.IX Item "block-graphics-to-ascii" 278.IX Item "block-graphics-to-ascii"
232A not very useful example of filtering all text output to the terminal, 279A not very useful example of filtering all text output to the terminal,
233by replacing all line-drawing characters (U+2500 .. U+259F) by a 280by replacing all line-drawing characters (U+2500 .. U+259F) by a
234similar-looking ascii character. 281similar-looking ascii character.
282.IP "digital-clock" 4
283.IX Item "digital-clock"
284Displays a digital clock using the built-in overlay.
235.IP "example-refresh-hooks" 4 285.IP "example-refresh-hooks" 4
236.IX Item "example-refresh-hooks" 286.IX Item "example-refresh-hooks"
237Displays a very simple digital clock in the upper right corner of the 287Displays a very simple digital clock in the upper right corner of the
238window. Illustrates overwriting the refresh callbacks to create your own 288window. Illustrates overwriting the refresh callbacks to create your own
239overlays or changes. 289overlays or changes.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines