# to update: cp /usr/$user/lib/plumbing /mnt/plumb/rules editor = 'acme -c1' browser = 'mothra -a' src is vdir type is text arg isdir $data plumb start window -cd $data rc #type is text #arg isdir $data #plumb to vdir #plumb client window vdir type is text data matches '.*.(mp4)' arg isfile $0 plumb start window -scroll treason -b $file type is text data matches '/mail/fs/mbox/[^ ]+/body' plumb start window $browser ''''file:///$0'''' # alternate gemini rule #type is text #data matches 'gemini://[^ ]+' #plumb client window gemnine ''''$0'''' | page -R type is text data matches 'gemini://[^ ]+' plumb to gemini plumb client window castor $0 type is text data matches 'gopher://[^ ]+' plumb to gopher plumb client window gopher $0 type is text data matches 'yt:video:([^ ]+)' plumb start window yt/v ''''$1'''' type is text data matches 'https?://(www.)?youtu(.)be[^ ]+' plumb start window yt/v ''''$0'''' type is text data matches 'https?://[^ ]+\.(gif)' plumb start window hget $0 | gif type is text data matches 'https?://[^ ]+\.(jpg|png)' plumb start window hget $0 | page -R type is text data matches '(https?://[^ ]+)\).*' plumb start window $browser ''''$1'''' type is text data matches 'https?://[^ ]+' plumb start window $browser ''''$0'''' type is text data matches '([a-zA-Z¡-￿0-9_\-./]+).(epub|EPUB)' plumb start window eread ''''$0'''' include basic