I was trying to add context highlighting (using context plug in) and inline editing (using rider plug in) for backlinks as seen in this discussion. But I couldn’t make it to work together.
So I thought of using Node explorer of Shiraz which already has inline editing option. Can the context highlighting option also be added to Node explorer. Also how to add a search box at the top of the node explorer.
I was using this Node explorer from the Shiraz site
Check this site
How does highlighting of searched words happen in the links tiddlywiki site. @Mark_S can you guide which tiddlers are responsible for context highlighting in links tiddlywiki site ?
The starting code is in the “Search” tiddler, and the individual results are displayed in the $:/_Templates/Components/LinkPanelSearch tiddler. It uses the Dynannotate official plugin. First the search finds the tiddlers that match either the search criteria or the regular expression. Then each tiddler is displayed with the Dynannote widget, which can use either a search string or a regular expression string. The widget uses ‘snippet’ mode to display a snippet of characters surrounding the search term.
I think you’re asking if you can show context for backlinks in Node explorer? The problem I see is that dynannotate works on the rendered text. So a pretty link wouldn’t match the actual backlink.
This is the code used for context highlighting in the Stroll.
Is it possible to use this context macro in node explorer.
I guess these are the required parts <$vars searchme=<<currentTiddler>> searchspx={{{ [<currentTiddler>escaperegexp[]]}}} > and <$context term=<<searchme>>
I don’t know whether this can be incorporated into the node explorer code I shared above. Is it possible?