Mario, Same technology different idea. Sorry for of topic.
If every tiddler (title) is cached internally for the link-widget detection could this also be used to highlight all text in a tiddler, on rendering a tiddler, that matches any existing tiddler title (or tag)?, this would highlight somewhat relevant information in text and provide opportunities to make links to tiddlers where none currently exist. If at the same time the rendering process would also highlight text that matches the last search string, it would allow people searching for a word or phrase to open tiddlers and see all occurrences of the search string highlighted. It seems to me if we already spent money on an "expensive" calculation lets get more in return. Such an approach will support a number of requirements raised in the forum where we are struggling to find reasonable and inexpensive solutions. Regards Tony On Monday, 11 December 2017 20:04:49 UTC+11, PMario wrote: > > On Monday, December 11, 2017 at 4:31:01 AM UTC+1, Mark S. wrote: >> >> I'm more worried about transclusions, since they would be used for >> insertion of _canonical_uri images. It's the images and the supporting >> tiddlers that would be hived off. >> > > The code would be similar to the link-widget detection, which has to check > the parsetree for every tiddler. Since this calculation is "expensive", the > results are cached internally, to speed up further searches. > > So detecting the transclusion-widget would result in similar code, which > is relatively low level. But the code is nicely separated, so it should be > doable. > > Link detection can be found in wiki.js > <https://github.com/Jermolene/TiddlyWiki5/blob/9b2d9169464754a3fddfba0efd098724dbf649d1/core/modules/wiki.js#L398-L440> > > > -m > -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b9473a23-e731-4489-b97b-04c54053214d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

