[tw5] Re: Substring filter?

It took me a while to find out, but filter operators are basically Javascript only. so for future reference, I wrote a fancy substring operator myself. It is available at
https://sw-amt.ws/tiddly/tw-substring.html

2 Likes

It took me a while to find out, but filter operators are basically Javascript only. so for future reference, I wrote a fancy substring operator myself. It is available at
https://sw-amt.ws/tiddly/tw-substring.html

Funnily enough, we are working on a new PR which allows custom filter operators to be defined in wikitext. There are more details here:

https://github.com/Jermolene/TiddlyWiki5/pull/6666#issuecomment-1119703393

Best wishes

Jeremy

Hi all,

Does anyone know how to extract portion of the tiddler? Like to result show in Google.

I have numerous tiddler with few short paragraphs. I wanted to show only the first 100 words of the text on the listing.

I am glad if someone could share a simple script on how to do it. Thanks.