improve basic plumb rules
This commit is contained in:
parent
f725e8b433
commit
69fba0e0ba
1 changed files with 8 additions and 8 deletions
|
@ -36,7 +36,7 @@ plumb start window rc -c '''echo % mail '''$0'; mail '$0
|
||||||
# audio
|
# audio
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(mp3|MP3|ogg|OGG|flac|FLAC|wav|WAV|au|AU|mid|MID|mus|MUS|m3u|M3U|pls|PLS)'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(mp3|MP3|ogg|OGG|flac|FLAC|wav|WAV|au|AU|mid|MID|mus|MUS|m3u|M3U|pls|PLS|opus|OPUS)'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to audio
|
plumb to audio
|
||||||
plumb start window -scroll play $file
|
plumb start window -scroll play $file
|
||||||
|
@ -44,7 +44,7 @@ plumb start window -scroll play $file
|
||||||
# image files go to page
|
# image files go to page
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
data matches '[a-zA-Z¡-0-9_\-.,/]+'
|
||||||
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV|tga|TGA)'
|
data matches '([a-zA-Z¡-0-9_\-.,/]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|PPM|bit|BIT|png|PNG|pgm|PGM|bmp|BMP|yuv|YUV|tga|TGA|webp|WEBP|img|IMG)'
|
||||||
arg isfile $0
|
arg isfile $0
|
||||||
plumb to image
|
plumb to image
|
||||||
plumb client page -wi
|
plumb client page -wi
|
||||||
|
@ -107,12 +107,12 @@ data matches '([a-zA-Z¡-
|
||||||
plumb start rc -c 'man -b '$2' '$1'
|
plumb start rc -c 'man -b '$2' '$1'
|
||||||
|
|
||||||
# RFC references are looked up in /lib/rfc and passed to editor
|
# RFC references are looked up in /lib/rfc and passed to editor
|
||||||
type is text
|
type is text
|
||||||
data matches 'RFC ?([0-9]+)'
|
data matches '[Rr][Ff][Cc] ?([0-9]+)'
|
||||||
arg isfile /lib/rfc/rfc$1
|
arg isfile /lib/rfc/rfc$1.html
|
||||||
data set $file
|
data set file:///$file
|
||||||
plumb to edit
|
plumb to web
|
||||||
plumb client window $editor
|
plumb client window $browser -a
|
||||||
|
|
||||||
# start rule for images without known suffixes
|
# start rule for images without known suffixes
|
||||||
dst is image
|
dst is image
|
||||||
|
|
Loading…
Reference in a new issue