Simple HighlightWidget (again)

My simple HighlightWidget now finds text independent of formatting, includes navigation and can be used in the sidebar. See screenshot.

I have one technical question and a number of questions about sharing.

Is it possible to get notified (in the JavaScript code of the widget) of a change in the story river? That would make the refresh button superfluous. I would very much like to make it unnecessary.

The widget currently comprises one JavaScript file and one CSS file, very first versions of which I previously made available as JSON files. (The first version of the widget was not more than the initial result of my enthusiastic curiosity to see if I could use the CSS Custom Highlight API for highlighting in Tiddlywiki (I could)). Posting JSON files is probably not the best way to share.

What is the best and/or most convenient way (for end users) to share? As a plugin? Other?

If as a plugin: Pointers to technical documentation would be very useful as I have as of yet not written one (I admit have not looked yet myself): how to write them, requirements, conventions, making versions available for testing, where and how to make them available, best practices, …

3 Likes

The refresh button is no longer necessary. In other words, users only need to type text in the input field. The next step is to turn this into a plugin (that may, I hope, also be useful to others).

1 Like

details to create a plugin, via node or browser are here

https://tiddlywiki.com/dev/#Developing%20plugins%20using%20Node.js%20and%20GitHub:[[Developing%20plugins%20using%20Node.js%20and%20GitHub]]%20[[How%20to%20create%20plugins%20in%20the%20browser]]

Thanks.
In the meantime I have looked a bit myself at what I found in different places.

Where is this plugin? Is it on the GitHub?

I am working on it. It should be available shortly (I hope). I’ll post an announcement when it is.

3 Likes