plumber

Plumber – a modern approach to plumbing
git clone git://r-36.net/plumber
Log | Files | Refs | README | LICENSE

commit afc3d9149b6c6b03dfd856e2ae40a23a51536a21
parent 5c231ed10de55b6ccabafc1b808850490c00f0ef
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 24 Feb 2024 18:47:28 +0100

Add news:// and nntp:// support. Much more.

Diffstat:
Mbin/plumber | 5+++++
Aopeners/newsopener | 11+++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/bin/plumber b/bin/plumber @@ -51,6 +51,11 @@ plumbrules = [ ["^ldap(|s)://.*", "ldapopener '%s'"], ["^moz://:*", "mozopener '%s'"], ["^mms://.*", "mediaopener '%s'"], + ["^news://.*", "newsopener '%s'"], + ["^newspost://.*", "newsopener '%s'"], + ["^newsreply://.*", "newsopener '%s'"], + ["^nntp://.*", "newsopener '%s'"], + ["^snews://.*", "newsopener '%s'"], ["^paper:.*", "paperopener '%s'"], ["^pubmed:.*", "pubmedopener '%s'"], ["^rfc:.*", "rfcopener '%s'"], diff --git a/openers/newsopener b/openers/newsopener @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ $# -lt 1 ]; +then + printf "usage: %s URI\n" "$(basename "$0")" >&2 + exit 1 +fi + +cd $HOME/Downloads +$XTERM -e sh -c "$PLUMB_NEWS \"$1\"" +