shithub: rc

Download patch

ref: 7e557dcc045c7f0a342cfc8a6732c6fd5baffd06
parent: 5ce9505a184ba53d382d08e66382621d1d37f999
author: qwx <qwx@sciops.net>
date: Sun Sep 11 00:40:12 EDT 2022

plumbing: add small svg rule, and don't treat .md files as sega(1) roms :(

--- a/plumbing
+++ b/plumbing
@@ -9,6 +9,13 @@
 data matches '([a-zA-Z¡-￿0-9_\-./]+)\(([0-9])\)'
 plumb	start	window -dy 800 man $2 $1 '; read'
 
+# images
+type	is text
+data	matches '[a-zA-Z¡-￿0-9_\-.,/]+'
+data	matches '([a-zA-Z¡-￿0-9_\-.,/]+)\.(svg|SVG)'
+arg	isfile $0
+plumb	start svg -9 $0 | plumb -id image
+
 # audio
 
 plumb	to	audio
@@ -58,7 +65,7 @@
 # emu
 
 type	is	text
-data	matches	'.+\.(2600|bin|BIN|gb|GB|gbc|GBC|gba|GBA|nes|NES|md|MD|smc|SMC)'
+data	matches	'.+\.(2600|bin|BIN|gb|GB|gbc|GBC|gba|GBA|nes|NES|smc|SMC)'
 data	set	$file
 plumb	start	window echo ''''rc -c ''''''''pemu ''''''''''''$file''''''''''''''''| rc
 
@@ -139,6 +146,13 @@
 plumb	start	window -noscroll -r 4 120 750 1000 upas/nedmail -s $0
 
 # vdir/fm
+
+# insane?
+#src is vdir
+#data	matches	'(.*)‡(.*)'
+#type is text
+#plumb start window -cd $1 rc -c ''$2''
+
 src is vdir
 type is text
 arg isdir $data
@@ -148,6 +162,5 @@
 type is text
 arg isdir $data
 plumb start window -cd $data rc
-
 
 include basic