... since they might be transcluded with {{tiddler}} or with <$transclude .../>. Am I stuck doing multiple regexp passes?
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.
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.
On Tuesday, December 12, 2017 at 12:40:53 AM UTC+1, TonyM wrote: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)?,Not really possible. There isn't enough info in the cache atm. It just holds a links[] array. And the parse tree has no positional info. ...
this would highlight somewhat relevant information in text and provide opportunities to make links to tiddlers where none currently exist.
I don't understand this. [[doesn't exist]] is already possible now. ?!?
If at the same time the rendering process would also highlight text that matches the last search string,not possible. ... You can't style text-nodes. You first need to find the text -> convert it to eg: a span-node -> give the span a styling. ...
it would allow people searching for a word or phrase to open tiddlers and see all occurrences of the search string highlighted.If I need this behaviour, I use the browser built in search.
It seems to me if we already spent money on an "expensive" calculation lets get more in return.Good idea, but time consuming.
Such an approach will support a number of requirements raised in the forum where we are struggling to find reasonable and inexpensive solutions."inexpensive" is the key word here.
have fun!mario\
I don't understand this. [[doesn't exist]] is already possible now. ?!?What I mean is lets say a tiddlers text contained the following "using Alphanumeric values in" - No links present, but the existence of a Tiddler named "Alphanumeric values" we would alter the rendering process to treat "Alphanumeric values" as [[Alphanumeric values]]
Only search for strings that exactly match (all) existing tiddlers titles and or captions. In this case "Alphanumeric values" ONLY, perhaps case insensitive.