commit 38691481c400bc517a27f2483758f883c4af09c8
parent 4e34a36f93a0589c68fd4f9906e114bbadec5670
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 26 Feb 2021 13:39:41 +0100
plumb: fetch gophers before opening
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -213,6 +213,8 @@ handle_url() {
fi
if regeximatch "$t" '^radio://'; then
$prefix mpv --force-window=no "http${t##radio}"
+ elif regeximatch "$t" '^gophers://'; then
+ termopen $prefix plumb "$(fetch "$t")"
elif regeximatch "$t" '\.(mp4|mkv|webm|avi|ogv|m3u|pls)$'; then
detach $prefix mpv "$t"
elif regeximatch "$t" '\.(mp3|ogg|m3u|wav|opus)$'; then