This is a bit late, but here’s my solution that returns the first line (not 
paragraph), using nothing but core functionality. Copy it literally 
(including new line as splitbefore’s parameter) into a test tiddler.

<$list filter="[{$:/ControlPanel}splitbefore[
]]" variable="firstLine"><$text text=<<firstLine>>/></$list>

—R

On Tuesday, May 12, 2015 at 4:41:40 AM UTC-7, Mat wrote:

@Mike - thank you for your input and sorry for late reply.
>
> With your pointers it does work now; http://match.tiddlyspot.com/
>
> But I do suspect the use of $tw is inappropriate and he also comments that 
> "/*global $tw: false */" which may be an indiction of this? I also get 
> the surrounding brackets, which I'm guessing is a failed attempt att 
> creating a link from the output?
>
> It seems like a very useful "Filter operator for picking parts out of 
> fields using regular expressions"  so hopefully someone will create a 
> fully satisfying version eventually.
>
> FYI, I intended to use it to transclude the first paragraph for the ToDo 
> list <http://fastnewtiddler.tiddlyspot.com/#Todo%20(please%20help)> in 
> fastnewtiddler but instead went with using a solution from Tobias to 
> transclude a field into the text that then appears to be the first 
> paragraph in the tiddler text and is reused in the ToDo-list. A bit 
> backward but...
>
> <:-)
>
​

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a87302d3-ef37-452b-8596-9a78d83f0d99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to