Change the macro to this:

\define mycrit() (?i)\b$(currentTiddler)$\b

On Saturday, January 25, 2020 at 11:46:59 AM UTC-8, David Gifford wrote:
>
> Will (?i) work somehow in your mycrit snippet, as it does in regular 
> regexp? That is an important piece of the puzzle.
>
> On Saturday, January 25, 2020 at 12:46:58 PM UTC-6, Mark S. wrote:
>>
>> Also, I think that you can just use "all[tiddlers]".
>>
>> \define mycrit() \b$(currentTiddler)$\b
>> <$list filter="[all[tiddlers]regexp:text<mycrit>sort[title]] 
>> -[is[current]] -[[$:/HistoryList]]"><strong><$view field="title"/></
>> strong><span class="indent1"><$link><span class="graybox"><$transclude 
>> field="text" mode="block" /></span></$link></span></$list>
>> - show quoted text -
>>
>>
>>
>> On Saturday, January 25, 2020 at 10:44:27 AM UTC-8, Mark S. wrote:
>>>
>>> You'll need a macro to wrap your criteria. I'm sure TT will be able to 
>>> tweak the reg expression, but this seems to work:
>>>
>>> \define mycrit() \b$(currentTiddler)$\b
>>> <$list filter="[!is[system]regexp:text<mycrit>sort[title]] 
>>> [is[system]regexp:text<mycrit>sort[title]] -[is[current]] 
>>> -[[$:/HistoryList]]"><strong><$view field="title"/></strong><span class=
>>> "indent1"><$link><span class="graybox"><$transclude field="text" mode=
>>> "block" /></span></$link></span></$list>
>>> - show quoted text -
>>>
>>>
>>>
>>>
>>>
>>> On Saturday, January 25, 2020 at 10:09:59 AM UTC-8, Mat wrote:
>>>>
>>>> Great if you solved it - but note that you'll get false positives with 
>>>> this. For example, the tiddler "Hum" will appear to be mentioned in the 
>>>> text "Humpty dumpty". I don't recall the exact expression for making a 
>>>> regexp only accept exact titles but I know it's possible. 
>>>>
>>>> Overall, note that the regexp will look to match strings whereas the 
>>>> backlinks filter will (I assume) look for actual links.
>>>>
>>>> <:-)
>>>>
>>>

-- 
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/aca9a99e-8f77-47b6-a5fe-57ea3d3a7ae3%40googlegroups.com.

Reply via email to