dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit cab5747135b7c841e183080bebb78cb130e0f4e4
parent 2ec6c400db390c702ad3dbff86d683fa1431fddd
Author: hhvn <dev@hhvn.uk>
Date:   Mon, 19 Jul 2021 13:12:26 +0100

.s/b/plumb: display local atom/rss feeds in sfeed_curses

Diffstat:
M.scripts/bin/plumb | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb @@ -178,10 +178,17 @@ do matches "\.(atom|rss)$|rss\.xml$" || fmatches "atom|rss" || fmagic "<feed.*xmlns.*http://www.w3.org/2005/Atom" || - fmagic "^<rss" && + fmagic "<rss" && wasfetched && plumb gui 'sfeed_addfeed $orig' + matches "\.(atom|rss)$|rss\.xml$" || + fmatches "atom|rss" || + fmagic "<feed.*xmlns.*http://www.w3.org/2005/Atom" || + fmagic "<rss" && + ! wasfetched && + plumb terminal 'sfeed < $arg | sort -rn | sfeed_curses' + matches ".*\.(epub|ps|eps|pdf|dvi|djvu)$" || fmatches "pdf|postscript" && isfile &&