MACRO "TABS" - [SOLVED] Filter CONTENT of the field that starts with "TERÇA"

Hello, Guys!

TIDDLYWIKI 5.3.3 with Tidlydesktop v.0.0.18 in Windows 10

<$macrocall $name="tabs"
   tabsList="[field:DIA-da-SEMANA[TERÇA]]+[sort[ORDEM]]"
   explicitState="$:/state/GUIA-Atual"
   actions=<<my-actions-tagtab>>
/

The code above selects all tiddlers that contain “TERÇA” in the “DIA-da-SEMANA” field.
I need to adapt the code so that it selects all tiddlers that have CONTENT starting with “TERÇA”.
I tried a few alternatives, but I couldn’t find the correct syntax. Can someone help me with my lack of experience?

Thank you in advance for your attention.

Try this:

   tabsList="[search:text:regexp[^TERÇA]]+[sort[ORDEM]]"

enjoy,
-e

Thanks for your suggestion, but it doesn’t work.
This way it selects only the tiddler with title=“TERÇA-FEIRA”.

In this format:

<$macrocall $name="tabs"
   tabsList="[field:DIA-da-SEMANA[search:text:regexp[^TERÇA]]]+[sort[ORDEM]]"
   explicitState="$:/state/GUIA-Atual"
   actions=<<my-actions-tagtab>>
/>

Not in this format either.
It presents a syntax error.

see https://tiddlywiki.com/#search%20Operator

[search:text:regexp[^TERÇA]]

search is the operator name
:text means “search in the tiddler’s text contents” (NOT the title field!)
:regexp means “process the filter parameter value as a regular expression”
[^TERÇA] means "any value that STARTS with “TERÇA”

-e

Hi, Eric…

Now that I’ve understood your explanation, I’ve managed to change it to make it work. It looks like this:

<$macrocall $name="tabs"
   tabsList="[search:DIA-da-SEMANA:regexp[^TERÇA]]+[sort[ORDEM]]"
   explicitState="$:/state/GUIA-Atual"
   actions=<<my-actions-tagtab>>
/>

Thank you very much.

1 Like