Thank you, Mark, that made the Context search work. I also added a little 
CSS magic.

I don't know if this was a problem before, or just started with these 
changes, but now tiddlers with parentheses in the title do not list 
anything.

On Saturday, January 25, 2020 at 6:06:15 PM UTC-6, Mark S. wrote:
>
> The great thing about TW is how backward compatible it is.
>
> This seems to work:
>
> \define mycrit() (?i)\b$(currentTiddler)$\b
> <$vars searchme=<<currentTiddler>>>
> <span class="serif">(click any gray box below to access its tiddler)</span
> ><br><br>
> <$list filter="[!is[system]regexp:text<mycrit>sort[title]] -[is[current]]"
> ><strong><$view field="title"/></strong><span class="indent1"><span class=
> "graybox"><$context term=<<searchme>> /></span></span></$list>
> </$vars>
>
>
> Note that there is an undocumented (?) 3 character search term minimum. So 
> my title "Hum" failed to work. But "Hummus" was much better. (I felt bad, 
> and then I *falafel*.)
>
> I would imagine figuring out the fix for styles should be easy for the CSS 
> experts in the forum.
>
>
> On Saturday, January 25, 2020 at 2:55:50 PM UTC-8, David Gifford wrote:
>>
>> Thanks Mark for your help on the mycrit definition! Worked like a charm!
>>
>> As for the context plugin, it did have a list filter option, but it 
>> seemed pretty tied to $:/AdvancedSearch 
>> <http://contextplugin.tiddlyspot.com/#%24%3A%2FAdvancedSearch>, which I 
>> am guessing is not invoked for this kind of list. The list filter example 
>> Danielo had was for a list-search. Also, this plugin is really old. Danielo 
>> still has tw- styles. Those got changed several years ago. I tried changing 
>> those to tc- in the plugin but didn't help.
>>
>> I installed and refreshed the plugin, but this did not work:
>>
>> \define mycrit() (?i)\b$(currentTiddler)$\b
>>
>> <span class="serif">(click any gray box below to access its 
>> tiddler)</span><br><br>
>> <$list filter="[!is[system]regexp:text<mycrit>sort[title]] 
>> -[is[current]]"><strong><$view field="title"/></strong><span 
>> class="indent1"><$link><span class="graybox"><$context 
>> term={{$:/temp/advancedsearch}} /></span></$link></span></$list>
>>
>> On Saturday, January 25, 2020 at 3:46:14 PM UTC-6, Mark S. wrote:
>>>
>>> Per your notes, it looks like you'll want to show context.
>>>
>>> <Cough> <Cough> Something like PR 2963 would make extracting context 
>>> much easier.
>>>
>>> Oh well.
>>>
>>> Checking the tiddlywiki toolmap (have you heard of it?) I found
>>>
>>> http://contextplugin.tiddlyspot.com/
>>>
>>> It looks like Danielo's "context" widget might do what you want.
>>>
>>>
>>>
>>> On Saturday, January 25, 2020 at 11:55:13 AM UTC-8, David Gifford wrote:
>>>>
>>>> Hi all
>>>>
>>>> Here is what I am playing with. Thanks to Mat and Mark for their help 
>>>> so far. Still need help, from them or others, to get this right! (see the 
>>>> link for the help I need)
>>>>
>>>> https://giffmex.org/experiments/roamwiki.experiment.html
>>>>
>>>> Dave
>>>>
>>>

-- 
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/38d4b1aa-bc79-4b44-81c4-a79cd689bce2%40googlegroups.com.

Reply via email to