On Friday 05 of October 2012 07:49:57 erik quanstrom wrote: > > certain program† i run in acme produces error messages in form ``$ERROR in > > $FILE on line $LINENO''. i have a plumber rule that opens $FILE in the > > acme > > window, but i'd like it to also position at line $LINENO. without having > > to > > perform full mouse sweep :D > > > > the question: is there a sensible way to access text /around/ text plumbed > > from acme (i.e., context), either from plumber rules or from plumber > > client > > program? > > does it not work to write a plumb rule that parses the whole line? then > it would possible to double-click at the edges of the line to select the > whole line.
that would do the trick indeed, except when i select whole line (by double- click on line edge), it doesn't seem to work with the plumber. either is not sent by acme, or it doesn't get matched by the simplest possible rule: data matches '.*error.*' type is text plumb start $TEST_SCRIPT $0 which works a-ok when i manually select text on the line. perhaps plumber treats LF character specially? ($TEST_SCRIPT is a small helper to test whether the rule matched) fwiw, that's p9p acme and plumber. -- dexen deVries [[[↓][→]]]
