Add support for rfc:// URIs. - plumb - Open certain URL patterns with an ad-hoc opener (plumber) (HTM) hg clone https://bitbucket.org/iamleot/plumb (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- (DIR) changeset 84635d114c71fbdeb31cfbf360c1bce146ce26a9 (DIR) parent 252ad827ffad07291ee45d181d912a3b3ee835ab (HTM) Author: Leonardo Taccari <iamleot@gmail.com> Date: Sun, 1 Apr 2018 01:23:47 Add support for rfc:// URIs. Diffstat: openers/rfc | 7 +++++++ rules | 3 +++ 2 files changed, 10 insertions(+), 0 deletions(-) --- diff -r 252ad827ffad -r 84635d114c71 openers/rfc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openers/rfc Sun Apr 01 01:23:47 2018 +0200 @@ -0,0 +1,7 @@ +#!/bin/sh + +for u in "$@"; do + rfc="${u#*://}" + rfcurl="https://tools.ietf.org/rfc/rfc${rfc}.txt" + plumb "${rfcurl}" +done diff -r 252ad827ffad -r 84635d114c71 rules --- a/rules Sun Apr 01 01:23:16 2018 +0200 +++ b/rules Sun Apr 01 01:23:47 2018 +0200 @@ -58,6 +58,9 @@ cve://* ) open "cve" "$u" ;; +rfc://* ) + open "rfc" "$u" + ;; git://* | *://*.git ) open "git" "$u" ;;