Re: [tw5] Substring filter?

2022-06-03 Thread James
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.


On Tuesday, 10 May 2022 at 01:07:25 UTC+8 jeremy...@gmail.com wrote:

> 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/#issuecomment-1119703393
>
> Best wishes
>
> Jeremy
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a55248b5-37d7-4310-89d9-53cab20c61d9n%40googlegroups.com.


Re: [tw5] Substring filter?

2022-05-09 Thread Jeremy Ruston
> 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/#issuecomment-1119703393 


Best wishes

Jeremy

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/AAF24EA7-79AD-4AAD-88D2-F3FDA3B6A3F7%40gmail.com.


[tw5] Substring filter?

2019-11-15 Thread Hubert
Hello,

Does a substring filter exist in the core? I couldn't find anything in the list 
of operators  that 
would extract a string of text beginning and ending at a specific location 
within the string (expressed in integers).

I'm aware that this can be solved with Evan's excellent formula plugin (and 
I'm using it, among others, for this purpose) but I wanted to know where we 
stand in case of core capabilities regarding substrings.

Many thanks,
Hubert

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77b32fdc-b787-4c41-a971-e0ac7ab7db3c%40googlegroups.com.