The default pattern to match URLs can be overridden with the "matcher.pattern.0" resource, and additional patterns can be specified with numbered patterns, in a manner similar to the ``selection'' extension. The launcher can also be overridden on a per-pattern basis.
It is possible to activate the most recently seen match or a list of matches from the keyboard. Simply bind a keysym to ``matcher:last'' or ``matcher:list'' as seen in the example below.
The "matcher:select" action enables a mode in which it is possible to iterate over the matches using the keyboard and either activate them or copy them to the clipboard. While the mode is active, normal terminal input/output is suspended and the following bindings are recognized:
It is also possible to cycle through the matches using a key combination bound to the "matcher:select" action.
Example: load and use the matcher extension with defaults.
Example: use a custom configuration.
URxvt.url-launcher: sensible-browser URxvt.keysym.C-Delete: matcher:last URxvt.keysym.M-Delete: matcher:list URxvt.matcher.button: 1 URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-] URxvt.matcher.pattern.2: \\B(/\\S+?):(\\d+)(?=:|$) URxvt.matcher.launcher.2: gvim +$2 $1