[TF] Grabbing a chunk of text delimited by prompts
Brought to you by:
kenkeys
|
From: johans at stack.nl (J. v. Selst) - 2003-03-11 21:03:40
|
Hi Brent, Brent Neal wrote: > What is not clear is how to tell my writer to stop. The > only delimiter I have is that I receive a new prompt. I could put > something in the prompt hook that disables the writer, You can add an extra hook (/def -h) that is activated from within the body of this new macro and uses -n1 so that it is triggered only once and then removed again. If you add -F (and optionally a higher priority with -p) then it shouldn't interfere with other macro's that trigger on the same text. > As an aside: It'd be tres cool if someone hacked in PCRE support for > matching. I do a lot of Perl hacking, and having to 'switch gears' to > write regexps for TF is always mind warping. According to Ken's mail from November last year, TF 5 does include PCRE support. Unfortunately TF5 is still not available. I would like to see an alpha pre-release soon (even if it is buggy as hell, it will motive others to help Ken). Ciao, Johan |