[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Eric Shulman
On Wednesday, May 12, 2021 at 3:41:23 AM UTC-7 lamn...@gmail.com wrote: > I've made some progress with this, here's where I'm currently stuck. > > I'm pasting the text (##header and body) in an *<$edit-text>* widget. > This is linked to a different, dedicated Tiddler called *NewEntryData*. >

[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Saq Imtiaz
Try this: <$vars testmonth={{{[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]}}}> <$button> <$action-setfield input-month=<> /> Set to: "<>" On Wednesday, May 12, 2021 at 12:41:23 PM UTC+2 lamn...@gmail.com wrote: > I've made some

[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Antonis Lamnatos
I've made some progress with this, here's where I'm currently stuck. I'm pasting the text (##header and body) in an *<$edit-text>* widget. This is linked to a different, dedicated Tiddler called *NewEntryData*. Then I'm bringing back only the month bit from the header by using the following.

[tw5] Re: String manipulations on textarea input

2021-05-10 Thread TW Tones
Quick tips - Text areas have lines delimited by \n - if you have the text in a filter you can use splitregexp[\n]] to split it into each line, then split again on split[:]] to get the first[] item or the fieldname:value - text must be handled differently as its multiline.

[tw5] Re: String manipulations on textarea input

2021-05-10 Thread Antonis Lamnatos
Ah yes, thanks for reminding me. Although it was purely for showing how I want to split the date per field. I haven't yet reached the point where I'm trying to reference actual fields. I'm trying to see if some or even most of what I've described can be achieved with <$list filter>-ing through

[tw5] Re: String manipulations on textarea input

2021-05-10 Thread PMario
Hi, *Field names *have to be *lowercase *only. -m On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote: > I'm moving my personal journal written in markdown files into Tiddlywiki. > I'm looking for a way to perform string/text manipulation on the input of > an <$edit-text>. > >