[tw5] Re: GetFirstLine behavior in TW5?

2019-12-23 Thread springer
Hi Tony, Thanks for the reply. I admit that I'm cheating a bit with leaning on the group during the transition time because I need to get the website reliably functional asap (for teaching starting in January), and can come back to appreciating more of what's under the hood in the summer. I

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-23 Thread TonyM
Springer Sorry, the filter tag[definition] was only partial. I just assumed you would have a proper filter according to your needs. E.g. [all[current]] etc... Regards Tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread springer
Eric, yes. YES! Hooray, and gratitude all over again! On Sunday, December 22, 2019 at 7:24:27 PM UTC-5, Eric Shulman wrote: > > On Sunday, December 22, 2019 at 2:04:58 PM UTC-8, springer wrote: >> >> I'm quite sure that your work was at the core of most of what I achieved >> in TW Classic. I'm

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread springer
Tony, this is promising, thanks! In fact, I had started many definition tiddlers with ":" (because of the old ";" and ":" pattern for signaling term-definition pairs). But your model works to search within a single specified tiddler, and replacing the outer filter to specify a tag as in <$list

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread Eric Shulman
On Sunday, December 22, 2019 at 2:04:58 PM UTC-8, springer wrote: > > I'm quite sure that your work was at the core of most of what I achieved > in TW Classic. I'm deeply grateful for that, and also appreciative that > you're still so active in the community! > Thanks! > Something about the

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread springer
Eric, I'm able to get *almost* the right result with a variant on your suggestion , namely: <$list filter="[tag[definition]sort[title]]"> ''{{!!title}}'' {{{[get[text]splitregexp[\n]first[]]}}} Result here

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread TonyM
All, some experiments inspired by this; Extending this for fun I can extract a line/paragraph labeled "Abstract:" <$list filter="HelloThere"> <$list filter="[all[current]get[text]splitregexp[\n]prefix[Abstract:]]" variable=abstract> <$link to=<> ><$text text=<>/> The above works

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread TonyM
Springer Depending on what you are trying to do a method I use may help, Testing the text field for a prefix. Get[text]prefix[https://] this partial filer can for example identify Tiddlers containing a link pasted with ctrl very Tont -- You received this message because you are

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread springer
Eric, I'm quite sure that your work was at the core of most of what I achieved in TW Classic. I'm deeply grateful for that, and also appreciative that you're still so active in the community! Something about the filtered list code in your reply is not *yet* coming out quite right (first

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread springer
Mark, Thanks for your reply... Of course, fields are a great way to structure data (I'm a database-nerd by mindset). At the moment, I'm trying to quickly whip a usable update into shape where there are over a hundred existing "flat" tiddlers where the first paragraph ("line") serves as a

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread Eric Shulman
On Sunday, December 22, 2019 at 8:25:54 AM UTC-8, springer wrote: > > I need a glossary tiddler that includes only the first line for each term > tagged "definition". (The full tiddler for each term often goes on to > include examples, history, other associated data.) > > Here's how the

[tw5] Re: GetFirstLine behavior in TW5?

2019-12-22 Thread 'Mark S.' via TiddlyWiki
Here's an example that will get the first line of HelloThere at tiddlywiki.com <$list filter="HelloThere +[get[text]splitregexp[\n]first[]]"/> I'm not sure that parsing lines out of text is the best way to proceed. TW5 makes it easy to access tiddler fields. It might be better to put the line