From b8e3a16e151f292227c5d1fb032c4127547a4718 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 14 Jan 2016 18:49:28 -0800 Subject: [PATCH] Document urxvt clickable links Change-Id: I4ca5f6859c632f0da1f6d83e9dd8ef0418d0dca9 --- README.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.rst b/README.rst index 5e09826..cc41cca 100644 --- a/README.rst +++ b/README.rst @@ -164,6 +164,25 @@ screen. To select text (e.g., to copy to the clipboard), hold Shift while selecting the text. +Terminal Integration +-------------------- + +If you use rxvt-unicode, you can add something like the following to +``.Xresources`` to make Gerrit URLs that are displayed in your +terminal (perhaps in an email or irc client) clickable links that open +in Gertty:: + + URxvt.perl-ext: default,matcher + URxvt.url-launcher: sensible-browser + URxvt.keysym.C-Delete: perl:matcher:last + URxvt.keysym.M-Delete: perl:matcher:list + URxvt.matcher.button: 1 + URxvt.matcher.pattern.1: https:\/\/review.example.org/(\\#\/c\/)?(\\d+)[\w]* + URxvt.matcher.launcher.1: gertty --open $0 + +You will want to adjust the pattern to match the review site you are +interested in; multiple patterns may be added as needed. + Contributing ------------