urxvt-selection-autotransform man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

urxvt-selection-autotransform(1) RXVT-UNICODE urxvt-selection-autotransform(1)

NAME
       selection-autotransform - automatically transform select text

DESCRIPTION
       This selection allows you to do automatic transforms on a selection
       whenever a selection is made.

       It works by specifying perl snippets (most useful is a single "s///"
       operator) that modify $_ as resources:

	  URxvt.selection-autotransform.0: transform
	  URxvt.selection-autotransform.1: transform
	  ...

       For example, the following will transform selections of the form
       "filename:number", often seen in compiler messages, into "vi +$filename
       $word":

	  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 paste directly into your (vi :) editor:

	  URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\\d+):?$/: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+)[,.]$/: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.

9.22				  2016-02-18  urxvt-selection-autotransform(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net