OK, so now i have the macro's working. Thanks to you forum members!
I have the following:

Macro extract-from-tag:

\define extract-from-tag(tid, tagname)
<$list filter="""[{$tid$}splitregexp[\n]join[
]splitregexp[<$tagname$.*?>]butfirst[1]]""" variable=item>
<$list filter="""[<item>splitregexp[</$tagname$>]butlast[1]]"""
variable=item2>
<$text text=<<item2>>/><br/>
</$list>
</$list>
\end

Then i call it like so in a new tiddler:

<<extract-from-tag [[naamOfTiddler] "9 Mar 21">>

And in that tiddler i start the log of today with:

<9 Mar 21>
..
--
log.
..
..
</9 Mar 21>

The macro returns the logtext between the two 9 Ma tags, great!
Now i have two questions:

1) The text is one lone line, no linebreaks (in the log i use <br> at the
end of the lines)
    Also tiddlerreferences like [[otherTiddler]] are not evaluated or
clickable... i would like to be able to click on them

2) Now i run the macro on 1 specific tiddler. Can i run the macro on ALL
tiddlers containing the 9 Mar 21 string??

If someone has an idea i'd be happy to learn..

Thanks

Ray

Op di 9 mrt. 2021 om 19:26 schreef Ray Vermey <[email protected]>:

> Stange, i deleted the tag, re-entered it, still the problem.
> Put the tag for the second time, behind the 1st, it worked.
> Now all is fine.
> Thanks for investigating this friends!
>
> Ray
>
> Op di 9 mrt. 2021 om 18:14 schreef Mohammad Rahmani <
> [email protected]>:
>
>> Rey,
>>  Your tag is wrong! tag the macro tiddler as "$:/tags/Macro"  NOT "
>> $:/tags/Macro"   NOTE TO EXTRA SPACE in front of tag
>>  I put the tag intentionally inside " " to explain the issue! They are
>> not required and should be removed!
>>
>> Could you tell us why you add extra space in front of the tag?
>>
>>
>> @Jeremy Ruston <[email protected]>
>> I think this is an issue! TW shall trim the leading and trailing spaces
>> in tags!
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Tue, Mar 9, 2021 at 8:15 PM Ray Vermey <[email protected]> wrote:
>>
>>> Ok is this what you mean?
>>>
>>> 2 json files attached..
>>>
>>> Tx
>>>
>>> Ray
>>>
>>> Op di 9 mrt. 2021 om 15:44 schreef 'Mark S.' via TiddlyWiki <
>>> [email protected]>:
>>>
>>>> We don't even know what the macro does. So, seeing the contents of the
>>>> macro might help. You can export the tiddler with the definition and the
>>>> tiddler where it is invoked but fails as JSON and post them here.
>>>>
>>>> On Tuesday, March 9, 2021 at 6:25:45 AM UTC-8 [email protected] wrote:
>>>>
>>>>> Well i copy pasted it... but if you want i can send you my TW file?
>>>>>
>>>>> Tx
>>>>>
>>>>> Ray
>>>>>
>>>>> Op di 9 mrt. 2021 om 15:15 schreef 'Mark S.' via TiddlyWiki <
>>>>> [email protected]>:
>>>>>
>>>>>> We really need to see a screenshot of your work. Or, ideally the work
>>>>>> itself. It's really easy to make a small spelling mistakes with those 
>>>>>> tags.
>>>>>> Esp. check if you've added any spaces by accident.
>>>>>>
>>>>>> On Tuesday, March 9, 2021 at 5:26:38 AM UTC-8 [email protected]
>>>>>> wrote:
>>>>>>
>>>>>>> Hi all
>>>>>>>
>>>>>>> i have a strange phenonemon.....
>>>>>>>
>>>>>>> I put a macro definition in a tiddler.
>>>>>>> I give it the correct macro tag.
>>>>>>>
>>>>>>> I have a new tiddler where i call this macro with << .. >>
>>>>>>> And nothing happens.....
>>>>>>>
>>>>>>> I do exactly the same in a new wiki from tiddlywiki.com and it
>>>>>>> works!!
>>>>>>>
>>>>>>> How can it have happend that all of a sudden my macro's are not
>>>>>>> working anymore??
>>>>>>> This is soo strange cause i also have some plugins that work
>>>>>>> fine.....
>>>>>>>
>>>>>>> Thanks for helping...
>>>>>>>
>>>>>>> Ray
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "TiddlyWiki" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> https://groups.google.com/d/topic/tiddlywiki/d0kNmyz--Wc/unsubscribe.
>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>> [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/tiddlywiki/5d93334a-8f77-4037-bad9-1ccb1addf949n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/5d93334a-8f77-4037-bad9-1ccb1addf949n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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 [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tiddlywiki/e9f3633e-482e-49a3-a9b8-5123383c7240n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/tiddlywiki/e9f3633e-482e-49a3-a9b8-5123383c7240n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9AaB1dL1Z0VsoHes8pDydLcZLsd74hSh2XTq1cUOmvG4g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9AaB1dL1Z0VsoHes8pDydLcZLsd74hSh2XTq1cUOmvG4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCm%2B5Xa8OpZKy60d1jveSeBwX47NH-QbrfNz2Oo%3DDyQAg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCm%2B5Xa8OpZKy60d1jveSeBwX47NH-QbrfNz2Oo%3DDyQAg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAF_p9CGFdjM%2BevuVvyk-qQPxn_iXr39r3au2_5hm7T_Q7yqwg%40mail.gmail.com.

Reply via email to