[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-18 Thread TonyM
Eric So often you see what I should of seen but did not. This should allow custom parsers in wiki text and widgets. Parse each line and transform it including adding line breaks, possibly the only invisible character in wiki text apart from tabs. Build a new variable with the output and set a

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-18 Thread TiddlyTweeter
Is this a one-way need occasionally? I.e. does permanent change work best, or do you need dynamic? Do you want to change the text or preserve it? TT On Saturday, 16 May 2020 22:38:03 UTC+2, Tony K wrote: > > I'm unable to find the delimiter equivalent to \n in TW5 > > Assuming I have a tiddler

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-17 Thread Tony K
Eric this is genius it actually solves my second question :o) thank you On Monday, May 18, 2020 at 3:24:00 AM UTC+3, Eric Shulman wrote: > > On Saturday, May 16, 2020 at 1:38:03 PM UTC-7, Tony K wrote: >> >> I'm unable to find the delimiter equivalent to \n in TW5 >> >> Assuming I have a tidd

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-17 Thread Eric Shulman
On Saturday, May 16, 2020 at 1:38:03 PM UTC-7, Tony K wrote: > > I'm unable to find the delimiter equivalent to \n in TW5 > > Assuming I have a tiddler and I want to parse it line by line. Is it > doable? > Here's a little example: <$vars lf=" "> line count=<$count filter="[{SomeTiddler}split]"/>

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-17 Thread TonyM
Mark, Yes perhaps this is true, but the current edit widgets, and the core editor all accept the and imbed line feed in text area fields. Somehow we need to get this to occur in demand, I wonder if a regex could extract it from a known tiddler an store it in a variable we can append later? It

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-17 Thread 'Mark S.' via TiddlyWiki
I don't think it is possible with the current operators and widgets. I think it would take a javascript macro to do the substitution. On Saturday, May 16, 2020 at 9:14:05 PM UTC-7, Tony K wrote: > > oh thank you Mark, I should have asked days ago > > a follow-up question please, is there a way to

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-17 Thread Tony K
Thanks Tony I really wish someone can shed light on this -- 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 di

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-16 Thread TonyM
Tony K, I have not seen an answer to your second question, however I too would be keen to know, I wonder if we can use a html or css entity for new line? Or ascii or something. LF 10 line feed CR 13 carriage return Tony On Sunday, 17 May 2020 14:14:05 UTC+10, Tony K wrote: > > oh thank you M

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-16 Thread Tony K
oh thank you Mark, I should have asked days ago a follow-up question please, is there a way to "add" '\n' that is not using i.e in TWCrosslinks when then entry is added to the input box the plugins appends it to a tiddler, for now I am using which, visually, doesn't look so good if you open

[tw5] Re: [Question] can I split a tiddler by lines?

2020-05-16 Thread 'Mark S.' via TiddlyWiki
You can use the splitregexp operator. Here's an example that works on TiddlyWiki.com: <$list filter="[[HelloThere]get[text]splitregexp[\n]!is[blank]nth[3]]"> <$text text=<>/> On Saturday, May 16, 2020 at 1:38:03 PM UTC-7, Tony K wrote: > > I'm unable to find the delimiter equivalent to \n in