I think the performance is fine, Tony.

I've expanded my code to also include searching titles. Someone with more 
skills might be able to make this more efficient:

\define mycrit() (?i)\b$(searchspx)$\b
<$list filter=[all[current]!is[system]!is[shadow]]>
<$vars searchme=<<currentTiddler>> searchspx={{{ 
[<currentTiddler>escaperegexp[]]}}} >
<$list 
filter="[!is[system]!is[shadow]!tag[hide]regexp:text<mycrit>sort[title]] 
-[all[current]backlinks[]]  -[is[current]]" variable=result>
        <div class="tc-menu-list-item">
            <div class="trans-container">
                <$link to=<<result>> ><$view tiddler=<<result>> 
field=title> </$view></$link>
                <span class="trans-content">  <$context 
term=<<currentTiddler>> tiddler=<<result>> /> </span>
            </div>
        </div>
</$list>
<$list filter="[!is[system]!is[shadow]!tag[hide]regexp:<mycrit>sort[title]] 
-[all[current]backlinks[]]  -[is[current]]" variable=result>
        <div class="tc-menu-list-item">
            <div class="trans-container">
                <$link to=<<result>> ><$view tiddler=<<result>> 
field=title> </$view></$link>
                <span class="trans-content">  <$context 
term=<<currentTiddler>> tiddler=<<result>> /> </span>
            </div>
        </div>
</$list>
</$vars>
</$list>


On Sunday, May 17, 2020 at 11:00:08 PM UTC-7, Tony K wrote:
>
> thank for that Scott 
>
> I actually just started feeling that specially with shorter words & I was 
> looking for a solution but Thanks to you 
>
> regarding the performance Please try to enable the "permanent" view it 
> should have an impact, 
>
> awaiting your feedback 
>
> On Monday, May 18, 2020 at 4:28:36 AM UTC+3, Scott Kingery wrote:
>>
>> Actually, the performance is ok. I rebuilt my wiki and it seems better. I 
>> think it might have been some extra code in there.
>>
>> After testing for a bit I did make a small change to the freelinks tab 
>> code. I was seeing results where the word wasn't necessarily by itself it 
>> would return in results. Like if it was part of a web URL or something. I 
>> hacked together a part of your code and some old code from tiddlyblink 
>> looks like:
>>
>> \define mycrit() (?i)\b$(searchspx)$\b
>> <$list filter=[all[current]!is[system]!is[shadow]]>
>> <$vars searchme=<<currentTiddler>> searchspx={{{ 
>> [<currentTiddler>escaperegexp[]]}}} >
>> <$list 
>> filter="[!is[system]!is[shadow]!tag[hide]regexp:text<mycrit>sort[title]] 
>> -[all[current]backlinks[]]  -[is[current]]" variable=result>
>>         <div class="tc-menu-list-item">
>>             <div class="trans-container">
>>                 <$link to=<<result>> ><$view tiddler=<<result>> field=title> 
>> </$view></$link>
>>                 <span class="trans-content">  <$context 
>> term=<<currentTiddler>> tiddler=<<result>> /> </span>
>>             </div>
>>         </div>
>> </$list>
>> </$vars>
>> </$list>
>>
>>
>>
>>
>> On Sunday, May 17, 2020 at 3:02:54 PM UTC-7, Scott Kingery wrote:
>>>
>>> Hi Tony,
>>> I'm still thinking this through. Your UI is a good solution and probably 
>>> better than lumping it all together. It is really all about how you 
>>> organize your wiki. I've been using tags and table-of-contents to organize 
>>> my notes. Coming from Evernote or OneNote or even paper you have that 
>>> paradigm in your brain. So really (and this could be and probably is a 
>>> thread on its own).... Tags group things together, say History Class Notes 
>>> where I might make a note on a George Washington tiddler that he was 
>>> General during the American revolution. Later I might make a note in my 
>>> Coin Collection notes that George Washington is on the US Quarter. 
>>> Freelinks would tell me there is some kinds of relation on George 
>>> Washington that I might not have put together and automatically link facts 
>>> about George. Powerful when your wiki starts to take some shape. 
>>>
>>> You could just not have any tags and let Freelinks link things up as you 
>>> randomly add a first note about [[George Washington]] then later when you 
>>> mention George Washington the Freelinks magic happens. Then you begin to 
>>> think about the retrieval of your notes. No grouping means my class notes 
>>> are all over that place. Maybe TIddlyMap would come in handy there, I never 
>>> tried it.
>>>
>>> Short version....don't change it :)
>>>
>>> One issue I'm still experimenting with is performance. I have 900+ 
>>> tiddlers in one wiki and in general things are fine until you click on a 
>>> tiddler that with *many *freelinks and then you click your freelinks 
>>> tab. I've seen it take 20 seconds to load the freelinks.
>>>
>>> On Saturday, May 16, 2020 at 9:11:15 PM UTC-7, Tony K wrote:
>>>>
>>>> Hello Scott
>>>> that's a very interesting thought and very easy to add as an option.
>>>>
>>>> one question pops to mind, you wouldn't even care if it is a linked 
>>>> (Backlink/keywords/tags) or unlinked reference (freelinks) ?
>>>>
>>>> eager to know your thoughts
>>>>
>>>>
>>>> On Sunday, May 17, 2020 at 4:40:18 AM UTC+3, Scott Kingery wrote:
>>>>>
>>>>> Tony, I'm using this TWCrosslinks and your Daily Notes plugin as a 
>>>>> replacement for the Daily Notes system I built before. I need to give it 
>>>>> a 
>>>>> bit more time but I'm curious about the tabs. They work great, Freelinks, 
>>>>> Tags etc. all in their own tab. It's pretty. My immediate thought though 
>>>>> is, while it is fantastic to discover that things are related and inked 
>>>>> somehow but why, as a user, do I care how they got linked?
>>>>>
>>>>> Just a conversation spark,
>>>>> Scott
>>>>>
>>>>> On Saturday, May 2, 2020 at 9:31:44 AM UTC-7, Tony K wrote:
>>>>>>
>>>>>> Update to *v0.1.6*
>>>>>>
>>>>>> version change log:
>>>>>>        2020-05-13: v0.1.6
>>>>>>
>>>>>>    - Bug fixes uncaught js error in transclusion code
>>>>>>
>>>>>>
>>>>>> full change log *here* 
>>>>>> <https://github.com/akhater/TWCrossLinks/blob/master/README.md>
>>>>>>
>>>>>> Demo site https://akhater.github.io/drift
>>>>>>
>>>>>> Install it by Drag n Drop from https://akhater.github.io/drift or 
>>>>>> download it directly from Github 
>>>>>> <https://github.com/akhater/TWCrossLinks/releases>
>>>>>>
>>>>>> Cheers
>>>>>> ------------------------------------------------
>>>>>> As promised in my Drift thread 
>>>>>> https://groups.google.com/forum/#!topic/tiddlywiki/QgPYL0JhxcY I 
>>>>>> packaged the "Cross Links" part of Drift as a separate plugin that you 
>>>>>> can 
>>>>>> download and install from 
>>>>>> https://github.com/akhater/TWCrossLinks
>>>>>>
>>>>>> Quick Feature links
>>>>>>
>>>>>>    - Adds a footer in the bottom of every Tiddler showing the 
>>>>>>    keywords of that tiddler (if present)
>>>>>>    - Adds a footer in the bottom of every Tiddler showing all 
>>>>>>    different types of inbound links to that tiddler (if present) 
>>>>>>       - Backlinks 
>>>>>>       - Tags 
>>>>>>       - Keywords 
>>>>>>       - Freelinks
>>>>>>    - Footer won't show unless existing
>>>>>>
>>>>>> For more info and a working demo please check 
>>>>>> https://akhater.github.io/drift
>>>>>>
>>>>>>

-- 
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/25131f58-d774-45b4-bae4-d5fb2e39d2ea%40googlegroups.com.

Reply via email to