kebi

Unless you set the current tiddler inside a macro call it will be the 
"current tiddler". So it is not clear what you want here,

If you have a listWidget and don't use the variable=varname the 
currentTiddler is changed for each item resulting from the list filter.

In your example [all[current]backlinks[]] eg `{{{ [all[current]backlinks[]] 
}}}` returns all tiddlers that link back to the currentTiddler.
`[regexp:title<text-pattern>]` is looking in each baclink tiddler for the 
exact string of the current tiddler title with square brackets. But there 
is no need because that is what backlinks are (and also include camelCase 
words)?

-[is[current]] backlinks excluding back links to self in self?
-[tag[hide]] from backlinks exclude tiddlers with a backlink to here with 
the hide tag
-[is[system]] from backlinks  exclude system tiddlers that back link to 
currentTiddler

More info please.

Regards
Tony


On Tuesday, August 18, 2020 at 2:47:36 PM UTC+10, kebi wrote:
>
> Hello guys,
> I want to know how to detect a backlink inside a macrocall, since the 
> default 
> all[current]backlinks[]]
> doesn't detect them.
>
> This is my macrocall:
> <$macrocall $name="remembercz" text="[[example backlink]]"/>
>
> I tried doing this
>
> \define text-pattern()
> [[$(currentTiddler)$]]
> \end
>
> <$list filter="[all[current]backlinks[]] [regexp:title<text-pattern>] 
> -[is[current]] -[tag[hide]] -[is[system]]"></$list>
>
> but it didn't work.
>
> Any ideas on how can I detect the backlink inside a macrocall with a 
> filter?
>

-- 
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/803a741e-1b42-4d57-a84c-ce49928777b3o%40googlegroups.com.

Reply via email to