From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: "James A. Robinson" Date: Wed, 10 Jul 2019 11:44:37 -0700 Message-ID: To: 9fans@9fans.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [9fans] question re acme and plumber Topicbox-Message-UUID: 0169df50-eada-11e9-9d60-3106f5b1d025 If I add a plumber rule for javac output: type is text data matches '\[ERROR\] ([.a-zA-Z=C2=A1-=EF=BF=BD0-9_/\-]+\.java):\[([0-9]+= ),[0-9]+\] .*' arg isfile $1 data set $file attr add addr=3D$2 plumb to edit plumb client $editor I can sweep a line (short of its trailing newline): [ERROR] /Users/jimr/proj/github/src/github.com/.../Cpio.java:[151,31] ';' expected in acme using button 3 and open up Cpio.java:151. Is there any way for me to just button 3 click within the text of the filename to get the same behavior? Also I had hoped I could do something like attr add addr=3D$2'-+#'$3 (assuming I captured the 2nd number in the data matches line), but it turns out Java is producing a 'column number', which means a tab is +8 column positions. My only thought upon discovering that was that I'd have to write some custom program to pick out the $1:$2 and evaluate it to determine what the actual character count was. Anyone have a better suggestion? The sam(1) addressing appeared to, very sensibly imo, limit itself to talking about lines, character counts, and regular expressions... Jim