Hi! I’m brand new to plugin development.
I’m trying to develop a plugin that shows a popup when hovering over certain tags. Only for reading mode for now. I’ve implemented it by registering event listeners on the tags in a postprocessor (is there a better way?)
However, when activating the plugin, I have to trigger the “Reload app without saving” command to let the postprocessors run the first time.
A possible workaround would be to trigger a refresh of the Reading view in
onload(). However, there seems to be no API for this. I’ve seen
this.app.workspace.activeLeaf.rebuildView() being mentioned here, but this API doesn’t seem to exist anymore.
Is there any way to automatically run the postprocessors on install? I know this is a small problem, but it’s annoying still.